From 72cdbcb53bd262d1fdc55bab6b377d7a6b166fec Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Mon, 2 Apr 2007 21:55:21 +0000 Subject: [PATCH] - CRYPT_FLAG_VERIFY != CRYPT_FLAG_PASSPHRASE (fixed commit 1.2 -> 1.3) CRYPT_FLAG_PASSPHRASE is redundant (I hope) to options.key_file Changed files: util-linux-dm_crypt.patch -> 1.5 --- util-linux-dm_crypt.patch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util-linux-dm_crypt.patch b/util-linux-dm_crypt.patch index 8483b36..69a9fe1 100644 --- a/util-linux-dm_crypt.patch +++ b/util-linux-dm_crypt.patch @@ -1,7 +1,7 @@ diff -urN util-linux-2.12q.org/mount/cryptsetup.c util-linux-2.12q/mount/cryptsetup.c --- util-linux-2.12q.org/mount/cryptsetup.c 1970-01-01 01:00:00.000000000 +0100 +++ util-linux-2.12q/mount/cryptsetup.c 2005-02-27 19:26:34.000000000 +0100 -@@ -0,0 +1,216 @@ +@@ -0,0 +1,214 @@ +/* + * cryptsetup.c - setup and control encrypted devices + */ @@ -112,8 +112,6 @@ diff -urN util-linux-2.12q.org/mount/cryptsetup.c util-linux-2.12q/mount/cryptse + options.key_file = NULL; + options.passphrase_fd = (pfd >= 0) ? pfd : 0; + options.flags = 0; -+ if (!options.key_file) -+ options.flags |= CRYPT_FLAG_VERIFY; + if (*cryptro) + options.flags |= CRYPT_FLAG_READONLY; + options.offset = offset; -- 2.44.0