[Bug 1091] targetshouldbedirectory not set for remote wildcards
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sun Sep 25 12:16:10 EST 2005
http://bugzilla.mindrot.org/show_bug.cgi?id=1091
Summary: targetshouldbedirectory not set for remote wildcards
Product: Portable OpenSSH
Version: 3.8.1p1
Platform: All
OS/Version: Linux
Status: NEW
Keywords: low-hanging-fruit
Severity: normal
Priority: P3
Component: scp
AssignedTo: bitbucket at mindrot.org
ReportedBy: rsc at swtch.com
If there are multiple file names matching a remote wildcard expression, then
"scp machine:wildcard asdf" will, if asdf does not exist, create asdf for the
first file and then overwrite it for each additional file. I would rather it
print an error without copying anything, or at least print an error without
copying more than one file. It's terribly frustrating to watch one file finish
and then see it immediately overwritten.
For example:
$ scp amsterdam:*.c /tmp/a
ether82557.c 100% 29KB 29.4KB/s 00:00
sdaoe.c 100% 16KB 15.8KB/s 00:01
sdaow.c 100% 44KB 44.1KB/s 00:00
serial.c 100% 1480 1.5KB/s 00:00
x.c 100% 220 0.2KB/s 00:00
$ ls -l /tmp/a
-rw-rw-r-- 1 rsc rsc 220 2005-09-24 22:14 /tmp/a
$
Russ Cox
rsc at swtch.com
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list