Hi OpenSSH, at least both openssh 3.5p1 and 3.6p1 give the wrong exit status 0 (zero) for "scp", if both source and destination are "remote" and some error happens (e.g. disk full): turtle tmp > scp /tmp/BIG1 /tmp/BIG2 ; echo $? cp: writing `/tmp/BIG2': No space left on device 1 turtle tmp > scp /tmp/BIG1 turtle:/tmp/BIG2 ; echo $? BIG1 100% |*****************************| 10601 KB 00:01 scp: /tmp/BIG2: No space left on device 1 turtle tmp > scp turtle:/tmp/BIG1 /tmp/BIG2 ; echo $? BIG1 100% |*****************************| 10601 KB 00:01 /tmp/BIG2: No space left on device 1 turtle tmp > scp turtle:/tmp/BIG1 turtle:/tmp/BIG2 ; echo $? scp: /tmp/BIG2: No space left on device ==> 0 turtle tmp > ssh -V OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090605f this is running on SuSE Linux 7.2. openssh binaries have been compiled myself on a RedHat 7.1 system using gcc-2.95.3 (built myself too). Harald Koenig
sorry for the duplicate report of bug #638 *** This bug has been marked as a duplicate of 638 ***
Mass change of RESOLVED bugs to CLOSED