mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
firstboot: drop duplicate trailing whitespace from root pw question
Since ask_password() (and related calls) already append one char, we ended up appending two. That's not pretty. Let's fix this, and do it like in all other cases ask_password() (or an equivalent function) is called.
This commit is contained in:
parent
d35c77412a
commit
3619634ca5
@ -553,8 +553,8 @@ static int prompt_root_password(void) {
|
||||
print_welcome();
|
||||
putchar('\n');
|
||||
|
||||
msg1 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter a new root password (empty to skip): ");
|
||||
msg2 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter new root password again: ");
|
||||
msg1 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter a new root password (empty to skip):");
|
||||
msg2 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter new root password again:");
|
||||
|
||||
for (;;) {
|
||||
_cleanup_strv_free_erase_ char **a = NULL, **b = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user