[arch-commits] Commit in cryptsetup/trunk (encrypt_hook)

Dave Reisner dreisner at archlinux.org
Sat Apr 21 13:30:40 EDT 2012


    Date: Saturday, April 21, 2012 @ 13:30:40
  Author: dreisner
Revision: 156606

Fix FS#24750.

Modified:
  cryptsetup/trunk/encrypt_hook

--------------+
 encrypt_hook |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: encrypt_hook
===================================================================
--- encrypt_hook	2012-04-21 17:24:19 UTC (rev 156605)
+++ encrypt_hook	2012-04-21 17:30:40 UTC (rev 156606)
@@ -101,7 +101,7 @@
             elif [ -n "${crypto}" ]; then
                 [ ${DEPRECATED_CRYPT} -eq 1 ] && warn_deprecated
                 msg "Non-LUKS encrypted device found..."
-                if [ $# -ne 5 ]; then
+                if echo "$crypto" | awk -F: '{ exit(NF == 5) }'; then
                     err "Verify parameter format: crypto=hash:cipher:keysize:offset:skip"
                     err "Non-LUKS decryption not attempted..."
                     return 1



More information about the arch-commits mailing list