(The problem is when repeated passphrase input is tried on pipe,
it should not show "error reading passphrase", because it fails
for the second reading attepmt anyway but should retain
error message saying "no key with this passpharase...")
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@117
36d66b0a-2a48-0410-832c-
cd162a569da5
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;