[Bug 3767] New: scp doesn't report copy of zero-length files to stdout when copying from remote server
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Dec 19 09:26:13 AEDT 2024
https://bugzilla.mindrot.org/show_bug.cgi?id=3767
Bug ID: 3767
Summary: scp doesn't report copy of zero-length files to stdout
when copying from remote server
Product: Portable OpenSSH
Version: 9.7p1
Hardware: amd64
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: scp
Assignee: unassigned-bugs at mindrot.org
Reporter: openssh_bugs at caseyconnor.org
I know scp uses sftp now, so I'm not sure if this is a bug: note that
when copying a zero-length file, scp doesn't report anything to stdout
when the file is coming from a remote server. See the following --
there are four transfers, but only three generate any stdout; the
second is silent:
$ touch /tmp/file.txt
$ scp /tmp/file.txt myserver:~/.
file.txt
100% 0 0.0KB/s 00:00
$ scp myserver:~/file.txt /tmp/file.txt
$ echo "hello" > /tmp/file.txt
$ scp /tmp/file.txt myserver:~/.
file.txt
100% 6 1.6KB/s 00:00
$ scp myserver:~/file.txt /tmp/file.txt
file.txt
100% 6 0.8KB/s 00:00
$
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list