summaryrefslogtreecommitdiffstats
path: root/src/firstboot
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-08-09 16:35:36 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-08-10 23:13:57 +0200
commit3619634ca5451c38d59e220f72b46f3832813c40 (patch)
tree13bc8d42c96ad3de193822c2fa025ef4438ccf85 /src/firstboot
parentdocs: fix env var name in random seed markdown documentation (diff)
downloadsystemd-3619634ca5451c38d59e220f72b46f3832813c40.tar.xz
systemd-3619634ca5451c38d59e220f72b46f3832813c40.zip
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.
Diffstat (limited to 'src/firstboot')
-rw-r--r--src/firstboot/firstboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index 1de5d12223..528e6452cf 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -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;