Print getpass() errors on a newline

This commit is contained in:
sin 2014-06-02 17:02:01 +01:00
parent 9146cebd97
commit aaea1e9ff7
1 changed files with 1 additions and 1 deletions

View File

@ -67,9 +67,9 @@ main(int argc, char *argv[])
ioctl(STDIN_FILENO, TCFLSH, (void *)0);
pass = getpass("Password: ");
putchar('\n');
if (!pass)
eprintf("getpass:");
putchar('\n');
cryptpass = crypt(pass, pw->pw_passwd);
explicit_bzero(pass, strlen(pass));
if (!cryptpass)