Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 85775 - checkisomd5 returns positive return code when all is well.
Summary: checkisomd5 returns positive return code when all is well.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: anaconda
Version: phoebe
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Michael Fulbright
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-03-07 16:12 UTC by James Olin Oden
Modified: 2005-10-31 22:00 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-03-07 19:18:50 UTC


Attachments (Terms of Use)

Description James Olin Oden 2003-03-07 16:12:54 UTC
Description of problem:
If checkisomd5 says that a ISO image passes, it will return 1.

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

How reproducible:
Always

Steps to Reproduce:
1.  Create an iso image.
2.  Run implantisomd5 against it.
3.  Run checkisomd5 against it.
4.  Check the return code.
    
Actual results:

It returns 1.

Expected results:

It should return 0 designated that all was well, and it should return 1
when all is not well.

Additional info:

The following is a patch to fix the problem:

--- anaconda-8.0.95/isomd5sum/checkisomd5.c.orig        2003-03-07 
10:54:20.000000000 -0500
+++ anaconda-8.0.95/isomd5sum/checkisomd5.c     2003-03-07 10:55:01.000000000 -
0500
@@ -323,4 +323,6 @@
     }
 
     rc = mediaCheckFile(argv[1]);
+
+    exit(rc ? 0 : 1);
 }

Comment 1 Michael Fulbright 2003-03-07 19:18:50 UTC
Thanks I'll put this on our developement version of anaconda.


Note You need to log in before you can comment on or make changes to this bug.