This is needed to be able to support a rename() operation conforming to POSIX in the SSH filesystem. With the rename operation defined in the SFTP spec, this is impossible, since in case the target exists it's not possible to perform the rename+unlink atomically. The patch applies on top of the statfs extension patch.
Created attachment 1394 [details] [PATCH] add atomic rename extension to sftp-server
Created attachment 1456 [details] Tweaked patch We should advertise the presence of the extension in the FXP_VERSION reply packet. Also, the official OpenSSH domain is "openssh.com", "openssh.org" was taken by a domain squatter and is not trustworthy (it could redirect at any time).
patch applied - thanks. This will be available in openssh-4.8
Great, thanks. This will solve a really long standing issue with sshfs.
Fix shipped in 4.9/4.9p1 release.