sftp-server failing to rename a file

Damien Miller djm at mindrot.org
Sun Feb 24 12:05:37 EST 2008


On Sun, 24 Feb 2008, Darren Tucker wrote:

> Christian Recktenwald wrote:
> [...]
> > So, the sftp "rename" command refuses to rename a file
> > to an existing one.
> 
> This behaviour is mandated by the version of the filexfer draft that 
> OpenSSH implements [1].  About SSH_FXP_RENAME, section 6.5 says:
> 
>    "It is an error if there already exists a file
>     with the name specified by newpath."
> 
> [1] http://www.openssh.com/txt/draft-ietf-secsh-filexfer-02.txt,
> which somewhat confusingly defines version 3 of the protocol.

There is an open enhancement request to add this at:

https://bugzilla.mindrot.org/show_bug.cgi?id=1400

-d


More information about the openssh-unix-dev mailing list