sftp-server failing to rename a file

Darren Tucker dtucker at zip.com.au
Sun Feb 24 10:55:30 EST 2008


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.

-- 
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.


More information about the openssh-unix-dev mailing list