Bug 759154
| Summary: | Script sshd.sh print 0 as error code of some utilities instead of returned code | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Daniel Horák <dahorak> |
| Component: | condor | Assignee: | Timothy St. Clair <tstclair> |
| Status: | CLOSED ERRATA | QA Contact: | Daniel Horák <dahorak> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1 | CC: | ltoscano, matt, mkudlej, tstclair |
| Target Milestone: | 2.1.1 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | condor-7.6.5-0.10 | Doc Type: | Bug Fix |
| Doc Text: |
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.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-06 18:18:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 765607 | ||
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 |
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.