Bug 71466

Summary: exit code not set
Product: [Retired] Red Hat Linux Reporter: Shawn McMahon <smcmahon>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED DUPLICATE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: gafton, mihai.ibanescu, smcmahon, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:49:23 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:

Description Shawn McMahon 2002-08-13 22:48:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530

Description of problem:
up2date does not set the exit code when it gets an error.

Version-Release number of selected component (if applicable):


How reproducible:
Sometimes

Steps to Reproduce:
1. up2date-nox -u
2. If it fails to connect because the service is busy, an error code 51 is
generated, but up2date exits with an exit code of 0.
3.  echo $?

	

Actual Results:  0

Expected Results:  1 or 51

Additional info:

This prevents rational scripting.  My script reports success, and later I find
out that it wasn't successful at all because up2date is reporting bogus status.

Status "normal" because the workaround is non-trivial.

Comment 1 Adrian Likins 2004-08-20 19:37:35 UTC

*** This bug has been marked as a duplicate of 67163 ***

Comment 2 Red Hat Bugzilla 2006-02-21 18:49:23 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.