Blame SOURCES/0002-options-Use-cryptX-instead-of-luksX-as-the-temporary.patch

61e9b3
From f9770058fa3bd8871b8b4ded0b10d4be418224ae Mon Sep 17 00:00:00 2001
61e9b3
From: "Richard W.M. Jones" <rjones@redhat.com>
61e9b3
Date: Mon, 7 Sep 2020 10:15:40 +0100
61e9b3
Subject: [PATCH 2/4] options: Use cryptX instead of luksX as the temporary
61e9b3
 name.
61e9b3
61e9b3
---
61e9b3
 options/decrypt.c | 10 +++++-----
61e9b3
 1 file changed, 5 insertions(+), 5 deletions(-)
61e9b3
61e9b3
diff --git a/options/decrypt.c b/options/decrypt.c
61e9b3
index d868f70..45de5b2 100644
61e9b3
--- a/common/options/decrypt.c
61e9b3
+++ b/common/options/decrypt.c
61e9b3
@@ -38,18 +38,18 @@
61e9b3
 
61e9b3
 /**
61e9b3
  * Make a LUKS map name from the partition name,
61e9b3
- * eg. C<"/dev/vda2" =E<gt> "luksvda2">
61e9b3
+ * eg. C<"/dev/vda2" =E<gt> "cryptvda2">
61e9b3
  */
61e9b3
 static void
61e9b3
 make_mapname (const char *device, char *mapname, size_t len)
61e9b3
 {
61e9b3
   size_t i = 0;
61e9b3
 
61e9b3
-  if (len < 5)
61e9b3
+  if (len < 6)
61e9b3
     abort ();
61e9b3
-  strcpy (mapname, "luks");
61e9b3
-  mapname += 4;
61e9b3
-  len -= 4;
61e9b3
+  strcpy (mapname, "crypt");
61e9b3
+  mapname += 5;
61e9b3
+  len -= 5;
61e9b3
 
61e9b3
   if (STRPREFIX (device, "/dev/"))
61e9b3
     i = 5;
61e9b3
-- 
61e9b3
2.18.4
61e9b3