[Bug 1535] New: rename doesn't fall back to rename syscall upon ENOSYS of link syscall

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Nov 7 08:37:09 EST 2008


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 at mindrot.org
        ReportedBy: johan.kielbaey at 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.


More information about the openssh-bugs mailing list