link(2) to rename files in sftp

Damien Miller djm at mindrot.org
Tue Apr 6 20:35:12 EST 2004


Andreas wrote:
> Is there an alternative to using link(2) to rename files in sftp-server?
> 
> Some users use sftp to upload files to a vfat partition on an sftp-server,
> and then renaming doesn't work. This breaks konqueror, for example (from KDE,
> which u), which upload files first with a ".part" extension and then renames 
> them removing this extension.

See the discussion and patches in
http://bugzilla.mindrot.org/show_bug.cgi?id=823

The Linux behaviour of returning EPERM is just broken IMO. It should be
something like EOPNOTSUPP.

-d




More information about the openssh-unix-dev mailing list