forked from pool/cryptsetup
add missing patch
OBS-URL: https://build.opensuse.org/package/show/security/cryptsetup?expand=0&rev=19
This commit is contained in:
parent
93171f9383
commit
dbaa63ecbe
13
cryptsetup-1.0.7-eofpw.diff
Normal file
13
cryptsetup-1.0.7-eofpw.diff
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: cryptsetup-1.0.7/lib/utils.c
|
||||||
|
===================================================================
|
||||||
|
--- cryptsetup-1.0.7.orig/lib/utils.c
|
||||||
|
+++ cryptsetup-1.0.7/lib/utils.c
|
||||||
|
@@ -452,6 +452,8 @@ int get_key(char *prompt, char **key, un
|
||||||
|
}
|
||||||
|
if(key_file)
|
||||||
|
close(fd);
|
||||||
|
+ if(!i) // we didn't read anything, user pressed ^D?
|
||||||
|
+ goto out_err;
|
||||||
|
pass[i] = 0;
|
||||||
|
*key = pass;
|
||||||
|
*passLen = i;
|
Loading…
Reference in New Issue
Block a user