]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firstboot: drop duplicate trailing whitespace from root pw question
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Aug 2019 14:35:36 +0000 (16:35 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 10 Aug 2019 21:13:57 +0000 (06:13 +0900)
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.

src/firstboot/firstboot.c

index 1de5d122231735f699fd80661c9a441a525f3432..528e6452cf41eac5d3e769e3497b61d3c87c47c7 100644 (file)
@@ -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;