bugzilla-daemon at mindrot.org
2004-Mar-17 09:05 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 Summary: Scp to s Solaris 9 box gives "exit status 1" although file is delivered. Product: Portable OpenSSH Version: 3.8p1 Platform: Sparc OS/Version: Solaris Status: NEW Severity: normal Priority: P2 Component: scp AssignedTo: openssh-bugs at mindrot.org ReportedBy: stefan at stebo.se When doing scp from a Solaris 8 (openssh 3.8p1) to a Solaris 9 (Sun Secure Shel) i get "exit status 1" even though the file is delivered. p950sts at sshgw1$ scp junk 10.137.52.240:~/; echo $?; echo $? p950sts at 10.137.52.240's password: junk 100% 11KB 0.0KB/s 00:00 1 Have done lots of tests with different OS versions (i.e. 5.6, 7, 8, 9). When using openssh on serverside there is no problem. The problem only occurs when doing a scp to a Solaris 9 Sun SecureShell (with ssh pathes installed). The problem does not occur when serverside uses the NISPlus naming service. Regards Stefan ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-17 09:06 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From stefan at stebo.se 2004-03-17 20:06 ------- Created an attachment (id=573) --> (http://bugzilla.mindrot.org/attachment.cgi?id=573&action=view) Debug from client and server side ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-17 12:38 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From dtucker at zip.com.au 2004-03-17 23:38 ------- What result does this give? ssh sol9box "exit 0" ; echo $? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-17 14:26 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From stefan at stebo.se 2004-03-18 01:26 ------- p950sts at sshgw1$ ssh 10.137.52.240 "exit 0"; echo $? p950sts at 10.137.52.240's password: 0 Gives 0. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-17 22:16 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From dtucker at zip.com.au 2004-03-18 09:16 ------- Does scp'ing to the sol9 box itself give the correct error code? ie sol9box$ scp junk sol9box:/tmp ; echo $? Can you try temporarily swapping the scp on the Solaris 9 box for OpenSSH's and see if that works? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-18 10:47 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From stefan at stebo.se 2004-03-18 21:47 ------- No, scp'ing the sol9box will not produce any error output and it exits with a 0, I have only seen this problem between Sol 7 & 8 to sol9. One strange thing is that this problem does not occur on Sol9 boxes using NISPlus. The swapping of scp did not produce anything new, same result as before. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-21 05:25 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From dtucker at zip.com.au 2004-03-21 16:25 ------- I've been meaning to install Solaris 9, this finally gave me an excuse. I can reproduce it with OpenSSH talking to SunSSH, but it seems very inconsistent: $ for i in `seq 1 30`; do scp -q hello.c sol9box:/tmp ; echo -n "$? "; done; echo 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-21 05:48 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From dtucker at zip.com.au 2004-03-21 16:48 ------- OK, I'm now pretty sure it's not the exit status of the remote "scp" command. I replaced the Solaris /usr/bin/scp with the following shell script, and I still get the inconsistent results. #!/bin/sh /usr/bin/scp.orig $* exit 0 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-21 07:15 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From dtucker at zip.com.au 2004-03-21 18:15 ------- Hmmm. Firstly, it looks like SunSSH's ssh doesn't collect the return code properly. $ uname -a SunOS sol9box 5.9 Generic_112233-11 sun4m sparc SUNW,SPARCstation-5 $showrev -p |grep 113273 Patch: 113273-05 Obsoletes: Requires: Incompatibles: Packages: SUNWsshdu $ /usr/bin/ssh -V SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0. $ /usr/bin/ssh sol9box /usr/bin/true; echo $? 255 Because of this, I'm using "ssh" from OpenSSH 3.8p1 for the rest of these tests. $ dd if=/dev/zero of=tmpfile bs=1k count=5 $ for i in `seq 1 30`; do /usr/local/bin/ssh <tmpfile sol9box "cat >/dev/null; exit 0" ; echo -n "$? "; done; echo 255 0 255 0 255 0 255 255 0 0 0 255 0 255 0 0 255 0 255 0 255 0 255 255 0 255 0 255 0 255 For comparison, here's the output of the same command on Solaris 8 with OpenSSH's sshd (3.7.1p2): $ for i in `seq 1 30`; do /usr/local/bin/ssh <tmpfile sol8box "cat >/dev/null; exit 0" ; echo -n "$? "; done; echo 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Conclusion: SunSSH's sshd does not always provide correct return codes when dealing with input to non-interactive commands. Report the bug to Sun, or install OpenSSH. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-21 07:29 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From djm at mindrot.org 2004-03-21 18:29 ------- I bet that Sun is using one of the broken hang-on-exit "fixes" ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-21 09:42 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 ------- Additional Comments From stefan at stebo.se 2004-03-21 20:42 ------- Thanks, that helped a lot! I'll contact Sun and see what they can do. I'll report back as soon as I get more info. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Mar-30 17:12 UTC
[Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
http://bugzilla.mindrot.org/show_bug.cgi?id=813 roland.mainz at nrubsig.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Darren.Moffat at Sun.COM ------- Additional Comments From roland.mainz at nrubsig.org 2004-03-31 03:12 ------- Darren: Can you take a quick look at this issue, please ? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Possibly Parallel Threads
- [Bug 813] Scp to s Solaris 9 box gives "exit status 1" although file is delivered.
- some newbie questions about gcc
- Shipping QEmu as part of Solaris Nevada (via SFWNV) ?
- [Bug 826] RFE: scp and ssh should have an option to set the group-id at login time
- [Patch] TCP MD5SIG for OpenSSH