Bug 76 - scp won't transfer files to or from the root under Cygwin
Summary: scp won't transfer files to or from the root under Cygwin
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: -current
Hardware: ix86 Cygwin on NT/2k/Win7-11
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-24 02:40 AEDT by Mark Bradshaw
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
cvs diff for the one line patch needed to fix this. (514 bytes, patch)
2002-02-02 10:07 AEDT, Mark Bradshaw
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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