Description of problem: In script /usr/libexec/condor/sshd.sh is few snippets of code like this: $KEYGEN -q -f $hostkey -t rsa -N '' if [ $? -ne 0 ] then echo ssh keygenerator $KEYGEN returned error $? exiting exit -1 fi Problem is on line with 'echo' command because exit code in $? is not from command '$KEYGEN -q...' but from test '[' command in 'if' condition. Version-Release number of selected component (if applicable): condor-7.6.5-0.8.el5.i386 How reproducible: 100% Actual results: When command in $KEYGEN (or other in similar) fails, printed error code is 0. Expected results: When command in $KEYGEN (or other in similar) fails, printed error code is correct.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: C: Cause sshd.sh to fail to execute C: Script prints a 0 for all error conditions F: Update the script to output the correct error code R: sshd.sh displays the correct error codes during failure conditions.
Verified on RHEL 5.7 and RHEL 6.2 on both platforms (i386 and x86_64) on condor-7.6.5-0.11. >>>VERIFIED
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0100.html