Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

internal-sftp atomic file operations?

9 views
Skip to first unread message

Paul Surgeon

unread,
Nov 18, 2009, 7:29:33 AM11/18/09
to
Hi

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?
Are there plans to include atomic file operations in internal-sftp?

Thanks
_______________________________________________
openssh-unix-dev mailing list
openssh-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

Darren Tucker

unread,
Nov 19, 2009, 5:59:37 AM11/19/09
to
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-...@openssh.com" revision 1
debug2: Server supports extension "sta...@openssh.com" revision 2
debug2: Server supports extension "fsta...@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.

0 new messages