[Bug 1447] New: sftp-server rename fails when EXDEV is returned

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Mar 6 03:30:27 EST 2008


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


More information about the openssh-bugs mailing list