internal-sftp atomic file operations?

Darren Tucker dtucker at zip.com.au
Thu Nov 19 21:59:37 EST 2009


Paul Surgeon wrote:
> I've been testing internal-sftp with chroot on OpenSSH_5.3p1 and it
> seems that internal-sftp does not support POSIX atomic rename()
> operations.
> Can someone confirm that this feature is only available in the
> sftp-server and not internal-sftp?

It's the same sftp server code either way.  A quick test with 
internal-sftp and chrootdirectory shows it's there:

$ sftp -vv localhost
[...]
debug2: Remote version: 3
debug2: Server supports extension "posix-rename at openssh.com" revision 1
debug2: Server supports extension "statvfs at openssh.com" revision 2
debug2: Server supports extension "fstatvfs at openssh.com" revision 2
sftp>

Under what conditions does it not work?  The only scenario I can think 
of is of you had sshd and sftp-server from different OpenSSH releases.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list