From dbaa63ecbe8ecb8e9b7bceddf43493238f7c516832c4b712f5712806e732fb60 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 24 Sep 2009 13:54:52 +0000 Subject: [PATCH] add missing patch OBS-URL: https://build.opensuse.org/package/show/security/cryptsetup?expand=0&rev=19 --- cryptsetup-1.0.7-eofpw.diff | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cryptsetup-1.0.7-eofpw.diff diff --git a/cryptsetup-1.0.7-eofpw.diff b/cryptsetup-1.0.7-eofpw.diff new file mode 100644 index 0000000..6914ea7 --- /dev/null +++ b/cryptsetup-1.0.7-eofpw.diff @@ -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;