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

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



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


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