Bug+bugfix in sftp-server : failed to rename file on sshfs mount

Johan Kielbaey johan.kielbaey at gmail.com
Thu Nov 6 05:26:33 EST 2008


Renaming a file via sftp on an sshfs mount resulted in a failure with
errorcode 38 (ENOSYS).

This is reproducable with openssh release 4.9p1 & 5.1p1 in combination
sshfs 2.2 (latest releases). Investigation revealed that sshfs only
implements the rename()-call and not the link()-call (used by

Attached is a patch to perform the rename()-call upon a failed link().
The patch is against openssh-5.1p1.

Kind regards,


More information about the openssh-unix-dev mailing list