IETF-SSH archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sftp rename not good.



On Tue, May 13, 2003 at 01:28:41PM -0600, Joseph Galbraith wrote:
> Let me make sure I understand the problem:
> 
> - SSH_FXP_RENAME specifies that it is an
>   error if the new file exists.
> 
> - rename(2) specifies that if the new file
>   exists, it is always overwritten.
> 
> Therefore rename(2) can't be used to implement
> SSH_FXP_RENAME.
> 
> Is this a correct summary of the problem?

yes, and the usual unix semantics for 'move'
cannot be easily emulated with SSH_FXP_RENAME.

-m



Home | Main Index | Thread Index | Old Index