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

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