summaryrefslogtreecommitdiff
path: root/sys/src/cmd/sshfs.c
AgeCommit message (Collapse)Author
2020-07-29sshfs: update usage text to match man pageAlex Musolino
2019-10-07sshfs: fix dir2attrib() memory leak in wstat error case (thanks BurnZeZ)cinap_lenrek
2019-10-07sshfs: fix race condition between sendproc() and recvproc()cinap_lenrek
there was a race between the sendproc putting the request on the sreqrd[] id and the recvproc handling the response, and potentially freeing the request before the sendproc() was finished with the request (or the fid). so we defer allocating a request id and putting it on the sreqrd[] stage after we have completely generated the request in vpack(). this prevents the handling of the request before it is even sent. this also means that the SReq should not be touched after calling sendpkt(), submitreq(), submitsreq(). secondly, putsfid() needs to acquire the RWLock to make sure sendproc() is finished with the request. the scenario is that recvproc() can call respond() on the request before sendproc() has unlocked the SFid.
2019-10-04sshfs: use threadexits() instead of exits()cinap_lenrek
2018-12-10sshfs: add exits(nil) to threadmainBurnZeZ
2018-05-27sshfs(4): replace the much maligned -r optionaiju
2018-05-15sshfs: if we're going to annoy everyone we should at least match documentationaiju
2018-03-20sshfs: usageaiju
2018-03-04sshfs: update qid and filename on Tcreateaiju
2017-09-22sshfs: use mtime for qid.vers, fix wstat without name change, fix wstat ↵cinap_lenrek
memory leak
2017-08-29sshfs: fork ssh in its own namespace so it wont keep the mountpoint opencinap_lenrek
2017-08-29sshfs: start sendproc and recvproc in the sane notegroup as the fs process ↵cinap_lenrek
so theadexitsall() works on sshfs: ending.
2017-04-30sshfs: fix -r / retulting in "//foo" paths, memory leaks, use estrdup9p()cinap_lenrek
just use cleanname() to implement pathcat(), which handles double slashes and ".." elements already. have to free the partial dir structue on error in parsedir(). use estrdup9p() instead of strdup().
2017-04-29sshfs: add -r and -M optionsaiju
2017-04-29sshfs: don't crash when no /etc/password file could be read on the remote sidecinap_lenrek
in a cygwin environment, theres no /etc/passwd file to translate numeric uid/gid's. changing passwdparse() to ignore nil string argument.
2017-04-28sshfs: check correctly for directory bits; calculate parent directory correctlyaiju
2017-04-28sshfs: reset SReq->reqid field to fix double-free of request idsaiju
2017-04-28sshfs: remove debug printaiju
2017-04-28sshfs: don't cache directory contentsaiju
2017-04-28sshfs: look up uid/gid from /etc/^(passwd group)aiju
2017-04-28add sshfsaiju