bugzilla-daemon at mindrot.org
2024-Dec-18 22:26 UTC
[Bug 3767] New: scp doesn't report copy of zero-length files to stdout when copying from remote server
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.
bugzilla-daemon at mindrot.org
2024-Dec-18 22:26 UTC
[Bug 3767] scp doesn't report copy of zero-length files to stdout when copying from remote server
https://bugzilla.mindrot.org/show_bug.cgi?id=3767 openssh_bugs at caseyconnor.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |openssh_bugs at caseyconnor.or | |g -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2024-Dec-19 23:29 UTC
[Bug 3767] scp doesn't report copy of zero-length files to stdout when copying from remote server
https://bugzilla.mindrot.org/show_bug.cgi?id=3767 --- Comment #1 from openssh_bugs at caseyconnor.org --- Kubuntu 24.10 is the distrubution. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2024-Dec-20 00:45 UTC
[Bug 3767] scp doesn't report copy of zero-length files to stdout when copying from remote server
https://bugzilla.mindrot.org/show_bug.cgi?id=3767 --- Comment #2 from openssh_bugs at caseyconnor.org --- Seems to be intentional, at least by code, given these lines: https://github.com/openssh/openssh-portable/blob/826483d51a9fee60703298bbf839d9ce37943474/sftp-client.c#L1684 https://github.com/openssh/openssh-portable/blob/826483d51a9fee60703298bbf839d9ce37943474/sftp-client.c#L2115 ...but what would be the reason if it is an intentional design choice? -- You are receiving this mail because: You are watching the assignee of the bug.