Bug 76

Summary: scp won't transfer files to or from the root under Cygwin
Product: Portable OpenSSH Reporter: Mark Bradshaw <bradshaw>
Component: scpAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: ix86   
OS: Cygwin on NT/2k/Win7-11   
Attachments:
Description Flags
cvs diff for the one line patch needed to fix this. none

Description Mark Bradshaw 2002-01-24 02:40:30 AEDT
Scp has some path issues when transferring to or from the root file system of a 
windows machine (cygwin).  It creates a path that begins with //, which 
indicates a UNC path on Windows.  I sent in patches for similar issues last 
year.  
 
The fix is a one line change to determine if the path is "/", and not double
up on the slashes.

You can see a diff patch from current cvs at:
http://www.networksimplicity.com/openssh/scp.c.diff
Comment 1 Mark Bradshaw 2002-02-02 10:07:19 AEDT
Created attachment 19 [details]
cvs diff for the one line patch needed to fix this.
Comment 2 Ben Lindstrom 2002-04-07 04:31:13 AEST
Fixed in CVS tree.
Comment 3 Damien Miller 2004-04-14 12:24:17 AEST
Mass change of RESOLVED bugs to CLOSED