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-b...@mindrot.org Reporter: openssh_b...@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. _______________________________________________ openssh-bugs mailing list openssh-bugs@mindrot.org https://lists.mindrot.org/mailman/listinfo/openssh-bugs