Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

internal-sftp atomic file operations?

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


surgpm at gmail

Nov 18, 2009, 4:29 AM

Post #1 of 2 (807 views)
Permalink
internal-sftp atomic file operations?

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-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


dtucker at zip

Nov 19, 2009, 2:59 AM

Post #2 of 2 (752 views)
Permalink
Re: internal-sftp atomic file operations? [In reply 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-rename [at] openssh" revision 1
debug2: Server supports extension "statvfs [at] openssh" revision 2
debug2: Server supports extension "fstatvfs [at] openssh" 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.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.