[PATCH] Allow scp to copy files that start with a Windows drive name.

Cedric Blancher cedric.blancher at gmail.com
Wed Sep 21 02:28:49 AEST 2016


It should work if you quote the ':' character with a '\' ... no need
for the patch.

Ced

On 20 September 2016 at 17:35, Scott Neugroschl <scott_n at xypro.com> wrote:
> Quoth Sam:
> On Windows, “scp C:/foo/bar remotehost:” will attempt to connect to a remote host “C”
> and access file “/foo/bar”. There is currently no syntax or flag to allow copying files that start with a drive name.
>
> This patch changes the behaviour (only on Cygwin) by considering that a single letter followed by a colon is a Windows drive name and thus an absolute path. This is also more consistent with the manual page that recommends to use absolute pathnames “to avoid scp treating file names containing ‘:’ as host specifiers”.
> -----------------------
>
> Is this really necessary?   Especially since it's a Cygwin specific patch, what is wrong with simply using /cygdrive/C/foo/bar?
>
>
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



-- 
Cedric Blancher <cedric.blancher at gmail.com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur


More information about the openssh-unix-dev mailing list