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

Bug#270399: ssh: [sftp] mget is completely broken. (treated as "get", any arguments but the first two are ignored)



Package: ssh
Version: 1:3.8.1p1-8
Severity: normal

sftp's mget[1] is just fubar. Given more than two arguments, it
ignores anything but the first two arguments and acts as if "get $1
$2" was specified.
---------------------------
[ametzler@server ~]$ mkdir sftp-test
[ametzler@server ~]$ cd sftp-test
[ametzler@server ~/sftp-test]$ echo a > a ; echo b > b ; echo c > c
ametzler@downhill:/tmp/sftp-test$ sftp ametzler@server
Connecting to server....
sftp> cd sftp-test
sftp> mget a b c
Fetching /home/ametzler/sftp-test/a to b
/home/ametzler/sftp-test/a                    100%    2     0.0KB/s   00:04
sftp> quit
ametzler@downhill:/tmp/sftp-test$ cat b
a
---------------------------

If mget is not supported it should just be rejected as unknown
command.
                        cu andreas
[1] I know it is not documented in the manpage, but "mget" is a
standard ftp commando, therefore people switching from sftp will use
it.
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"




Reply to: