2009-09-25 00:02:30 +02:00
|
|
|
Index: cryptsetup-1.0.7/lib/utils.c
|
|
|
|
===================================================================
|
|
|
|
--- cryptsetup-1.0.7.orig/lib/utils.c
|
|
|
|
+++ cryptsetup-1.0.7/lib/utils.c
|
2009-10-03 00:43:00 +02:00
|
|
|
@@ -452,6 +452,8 @@ int get_key(char *prompt, char **key, un
|
2009-09-25 00:02:30 +02:00
|
|
|
}
|
|
|
|
if(key_file)
|
|
|
|
close(fd);
|
2009-10-03 00:43:00 +02:00
|
|
|
+ if(!i) // we didn't read anything, user pressed ^D?
|
2009-09-25 00:02:30 +02:00
|
|
|
+ goto out_err;
|
|
|
|
pass[i] = 0;
|
|
|
|
*key = pass;
|
|
|
|
*passLen = i;
|