mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Put carriage returns in right place after password prompts.
This commit is contained in:
parent
928a0a098a
commit
7e71d8689f
4
lrzip.c
4
lrzip.c
|
|
@ -470,8 +470,9 @@ retry_pass:
|
||||||
print_output("Enter passphrase: ");
|
print_output("Enter passphrase: ");
|
||||||
if (unlikely(fgets(passphrase, PASS_LEN - SALT_LEN, stdin) == NULL))
|
if (unlikely(fgets(passphrase, PASS_LEN - SALT_LEN, stdin) == NULL))
|
||||||
failure("Empty passphrase\n");
|
failure("Empty passphrase\n");
|
||||||
|
print_output("\n");
|
||||||
if (make_hash) {
|
if (make_hash) {
|
||||||
print_output("\nRe-enter passphrase: ");
|
print_output("Re-enter passphrase: ");
|
||||||
if (unlikely(fgets(testphrase, PASS_LEN - SALT_LEN, stdin) == NULL))
|
if (unlikely(fgets(testphrase, PASS_LEN - SALT_LEN, stdin) == NULL))
|
||||||
failure("Empty passphrase\n");
|
failure("Empty passphrase\n");
|
||||||
print_output("\n");
|
print_output("\n");
|
||||||
|
|
@ -480,7 +481,6 @@ retry_pass:
|
||||||
goto retry_pass;
|
goto retry_pass;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print_output("\n");
|
|
||||||
termios_p.c_lflag |= ECHO;
|
termios_p.c_lflag |= ECHO;
|
||||||
tcsetattr(fileno(stdin), 0, &termios_p);
|
tcsetattr(fileno(stdin), 0, &termios_p);
|
||||||
free(testphrase);
|
free(testphrase);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue