[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#351440: scp unprepared for missing ":"



Package: openssh-client
Version: 1:4.2p1-5
Severity: minor
File: /usr/bin/scp
Tags: upstream

Let's look what happens when the user forgets the ":":
$ echo 1 > 1; echo 2 > 2
$ scp 1 2 3; echo $?
1
$ cat ?
1
2
2
The most we see is $?=1, no further warnings, we create an arbitrary
file and the first file is totally ignored! cp(1) does the right thing:
$ rm 3
$ cp 1 2 3; echo $?
cp: target `3' is not a directory
1
$ ls
1 2
Also the man page should talk about cases when to and from are all local.




Reply to: