file name handling "bug" in scp?

stdout azi maillists.stdout at gmail.com
Wed Jul 27 21:08:18 EST 2005


OK, let me mention my issue  :-)

$scp foo.pdf azi at foo.bar.com LALALALA
cp : cannot stat `azi at foo.bar.com': No such file or directory
$

Now, the file LALALALA is created and has the same content that foo.pdf

$ls -al
-rw-r--r--    1 azi      users           101 Aug  2 13:03 foo.pdf
-rw-r--r--    1 azi      users           101 Aug  2 13:03 LALALALA







On 7/27/05, Bob Proulx <bob at proulx.com> wrote:
> Evaldo Gardenali wrote:
> > I think I found a small filename handling issue in scp:
> > [...concerning special shell characters not being escaped and files
> > that contain those characters causing trouble...]
> 
> I suggest you use rsync with ssh to copy files in this instance.  The
> remote shell only invokes the other half of the rsync program.  And
> after that the shell is not involved in the transfer.
> 
> Bob
> 
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>




More information about the openssh-unix-dev mailing list