Mailing List Archive

[Bug 1535] New: rename doesn't fall back to rename syscall upon ENOSYS of link syscall
https://bugzilla.mindrot.org/show_bug.cgi?id=1535

Summary: rename doesn't fall back to rename syscall upon ENOSYS
of link syscall
Product: Portable OpenSSH
Version: 5.1p1
Platform: ix86
OS/Version: Linux
Status: NEW
Keywords: patch
Severity: normal
Priority: P3
Component: sftp-server
AssignedTo: unassigned-bugs@mindrot.org
ReportedBy: johan.kielbaey@gmail.com


Currently renaming of a file is implemented via a link() and unlink()
syscall with the possibility to fall back to the rename() syscall in
certain conditions (ENOTSUPP etc).

In case the errorcode returned by link() is ENOSYS this is not the
case.

The attached patch implements a fallback to rename in case of ENOSYS.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs