[PATCH isomd5sum rhel6 3/5] checkisomd5 should return 0 only if check passes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is what is stated in man page. If check fails, md5 sum is not found,
or - which is newly added - check is aborted, return 1.
---
 checkisomd5.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/checkisomd5.c b/checkisomd5.c
index 8f2ba8b..d306b3f 100644
--- a/checkisomd5.c
+++ b/checkisomd5.c
@@ -146,6 +146,6 @@ int main(int argc, char **argv) {
 
     fprintf(stderr, "\nThe media check is complete, the result is: %s\n", result);
 
-    exit (rc == ISOMD5SUM_CHECK_FAILED);
+    exit (rc != ISOMD5SUM_CHECK_PASSED);
 }
  
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux