chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
eb8d87c
)
cryptsetup: reword questions a little
author
Lennart Poettering
<lennart@poettering.net>
Tue, 16 Nov 2010 02:47:14 +0000
(
03:47
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 16 Nov 2010 02:47:14 +0000
(
03:47
+0100)
src/cryptsetup.c
patch
|
blob
|
history
diff --git
a/src/cryptsetup.c
b/src/cryptsetup.c
index 5afac6482f32b212b7adf8f878b8f82217ecaaa7..ee15802365c7161f25b00dea94868bd541916d35 100644
(file)
--- a/
src/cryptsetup.c
+++ b/
src/cryptsetup.c
@@
-234,7
+234,7
@@
int main(int argc, char *argv[]) {
if (!key_file) {
char *text;
if (!key_file) {
char *text;
- if (asprintf(&text, "Please enter passphrase for disk %s
", argv[3
]) < 0) {
+ if (asprintf(&text, "Please enter passphrase for disk %s
!", argv[2
]) < 0) {
log_error("Out of memory");
goto finish;
}
log_error("Out of memory");
goto finish;
}
@@
-250,7
+250,7
@@
int main(int argc, char *argv[]) {
if (opt_verify) {
char *password2 = NULL;
if (opt_verify) {
char *password2 = NULL;
- if (asprintf(&text, "Please enter passphrase for disk %s
(verification)", argv[3
]) < 0) {
+ if (asprintf(&text, "Please enter passphrase for disk %s
! (verification)", argv[2
]) < 0) {
log_error("Out of memory");
goto finish;
}
log_error("Out of memory");
goto finish;
}