projects
/
platform
/
upstream
/
cryptsetup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
... and previous reintroduce it as debug message.
[platform/upstream/cryptsetup.git]
/
lib
/
utils.c
diff --git
a/lib/utils.c
b/lib/utils.c
index
c498a60
..
d23619e
100644
(file)
--- a/
lib/utils.c
+++ b/
lib/utils.c
@@
-493,8
+493,10
@@
void get_key(char *prompt, char **key, unsigned int *passLen, int key_size,
if(key_file)
close(fd);
/* Fail if piped input dies reading nothing */
- if(!i && !regular_file)
+ if(!i && !regular_file) {
+ log_dbg("Error reading passphrase.");
goto out_err;
+ }
pass[i] = 0;
*key = pass;
*passLen = i;