[PATCH] [RHEL5.4] cryptsetup status reversed its exit codes. (#499824)

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

 



cryptsetup status now returns zero for an active mapping; otherwise it
returns one.
---
 cryptodev.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cryptodev.py b/cryptodev.py
index cde919a..fcbf112 100644
--- a/cryptodev.py
+++ b/cryptodev.py
@@ -145,7 +145,7 @@ class LUKSDevice:
                                     stdout = "/dev/null",
                                     stderr = "/dev/null",
                                     searchPath = 1)
-        return not rc
+        return rc
 
     def formatDevice(self, devPrefix="/dev"):
         """Write a LUKS header onto the device."""
-- 
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