Description of problem: scp returns non-zero exit statuses under RedHat 4. The same commands executed under RHEL 3 and Fedora Core 5 all return 0, but RedHat 4 does not. This is for copying files locally using scp. Version-Release number of selected component (if applicable): openssh-3.9p1-8.RHEL4.12 How reproducible: Always, under i386 and athlon architectures. Steps to Reproduce: 1. mkdir /tmp/t 2. /usr/bin/scp -v -r /tmp/t /tmp/p; echo $? Actual results: Executing: cp -r /tmp/t /tmp/p 1 Expected results: Executing: cp -r /tmp/t /tmp/p 0 Additional info: Tested this under RHEL 4 on multiple machines, with the same result.
I should point out that the exit status is 0 when you copy a file to a remote host, but not when you copy a file locally: [user@server tmp]$ scp -r -v /tmp/t /tmp/l; echo $? Executing: cp -r /tmp/t /tmp/l 1
*** This bug has been marked as a duplicate of 190147 ***