Mailing List Archive

[Bug 1447] New: sftp-server rename fails when EXDEV is returned
https://bugzilla.mindrot.org/show_bug.cgi?id=1447

Summary: sftp-server rename fails when EXDEV is returned
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.7p1
Platform: All
OS/Version: Linux
Status: NEW
Keywords: patch
Severity: normal
Priority: P2
Component: sftp-server
AssignedTo: bitbucket@mindrot.org
ReportedBy: mgarrison@alienz.net


Created an attachment (id=1459)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=1459)
fix rename

One of the complaints we've commonly gotten from users is that modern
versions of OpenSSH do not allow users to rename files in AFS across
directories. Since OpenAFS only allows hardlinks in the parent
directory, you can rename in the same directory but not across
directory boundaries.

This is the same behavior when you try to rename across regular
partition boundaries, as a hardlink will fail with EXDEV. This patch
fails over to doing a racy rename if EXDEV is returned.

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