[PATCH]: scp: Avoid paths beginning with "//"
Mark Bradshaw
bradshaw at staff.crosswalk.com
Wed Jan 23 03:10:43 EST 2002
Here's a new version of the patch I sent in earlier, diffed against cvs.
Can someone please take a look at it.
> -----Original Message-----
> From: Mark Bradshaw
> Sent: Monday, January 14, 2002 8:09 PM
> To: openssh-unix-dev at mindrot.org
> Subject: [PATCH]: scp: Avoid paths beginning with "//"
>
>
> 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.
>
> I've attached diffs to latest cvs.
>
> -Mark
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scp.c.diff
Type: application/octet-stream
Size: 514 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20020122/d552f7f5/attachment.obj
More information about the openssh-unix-dev
mailing list