While using internal sftp server, need to access files outside chroot
    Damien Miller 
    djm at mindrot.org
       
    Fri Jun 22 14:37:14 EST 2012
    
    
  
On Mon, 18 Jun 2012, John Olsson M wrote:
> > A move to the same partition isn't a problem as sftp still has the
> > file descriptor, but a copy or a move to another partition will
> > result in corrupted data.
>
> What do you think of having the SFTP server temporarily rename the
> transfered file with a ".tmp" extension which is removed when transfer
> is completed? Then another application knows when a file has been
> transfered completely. Or is this an excercise best left to the client
> to do?
A few people have asked to be able to upload files under a temporary
name and rename them into place once the upload successfully completes.
This can be implemented pretty easily and purely in the client.
I'm pretty backlogged at the moment, but writing this (as a "put" flag)
would be an easy afternoon project for someone interested.
-d
    
    
More information about the openssh-unix-dev
mailing list