[Bug 3611] New: scp -r does not handle sym links to directories correctly
    bugzilla-daemon at mindrot.org 
    bugzilla-daemon at mindrot.org
       
    Wed Sep  6 06:05:35 AEST 2023
    
    
  
https://bugzilla.mindrot.org/show_bug.cgi?id=3611
            Bug ID: 3611
           Summary: scp -r does not handle sym links to directories
                    correctly
           Product: Portable OpenSSH
           Version: 8.7p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: scp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: ryman559 at hotmail.com
Example:
scp  -r /tmp/dir1/ `hostname`:/tmp/scp
/tmp/dir1/dir3 is not a regular file
Uploading of file /tmp/dir1/dir3 to /tmp/scp/dir1/dir3 failed!
failed to upload directory /tmp/dir1 to /tmp/scp/dir1
ls -lart /tmp/dir1/dir3 
lrwxrwxrwx 1 root root 13 Sep  5 11:33 /tmp/dir1/dir3 -> ../dir2/dir3/
Works with -O:
scp -O  -r `hostname`:/tmp/dir1/  /tmp/scp
abc 
I assume it has something to do with the new protocol. Apologies if
this is already fix, but didn't find anything when I looked.
Thanks
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
    
    
More information about the openssh-bugs
mailing list