summaryrefslogtreecommitdiff
path: root/src/cryptsetup
diff options
context:
space:
mode:
authorMatthew Monaco <matt@monaco.cx>2014-04-19 12:56:45 -0600
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-19 23:38:14 -0400
commit66aaf85e178492c27f699d9c94c84a98466a1435 (patch)
tree6e59432be1f43edad2e701922c865eb11dd50035 /src/cryptsetup
parentd38f6e34a618e2d100b06888e0810f776eb83510 (diff)
cryptsetup: copy value, not key for (rd.)luks.key
Diffstat (limited to 'src/cryptsetup')
-rw-r--r--src/cryptsetup/cryptsetup-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index 75d56ddafa..f4eeb2ad93 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -287,7 +287,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
} else if (STR_IN_SET(key, "luks.key", "rd.luks.key") && value) {
free(arg_keyfile);
- arg_keyfile = strdup(key);
+ arg_keyfile = strdup(value);
if (!arg_keyfile)
return log_oom();