diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-18 23:40:27 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-18 23:40:27 +0100 |
commit | 1cd4a9f0e94f80a3b2e9f74aeb201273cbe63026 (patch) | |
tree | 95d270d8c3c1c17f27fcf51bfd7e4bc2de896a6c /src | |
parent | b1a2da0a7917fed1fbbc51ef7562b4db92c715f6 (diff) |
cryptsetup: actually show disk name
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptsetup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptsetup.c b/src/cryptsetup.c index 48b2c9ce1b..f543a05055 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -274,7 +274,7 @@ int main(int argc, char *argv[]) { if (!key_file) { char *text; - if (asprintf(&text, "Please enter passphrase for disk %s!", argv[2]) < 0) { + if (asprintf(&text, "Please enter passphrase for disk %s!", name) < 0) { log_error("Out of memory"); goto finish; } @@ -290,7 +290,7 @@ int main(int argc, char *argv[]) { if (opt_verify) { char *password2 = NULL; - if (asprintf(&text, "Please enter passphrase for disk %s! (verification)", argv[2]) < 0) { + if (asprintf(&text, "Please enter passphrase for disk %s! (verification)", name) < 0) { log_error("Out of memory"); goto finish; } |