1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

ask-password: Use unicode for password echo

This commit is contained in:
Jan Janssen 2023-09-04 15:26:25 +02:00 committed by Lennart Poettering
parent 1527d6059d
commit 5169177fb0

View File

@ -608,7 +608,11 @@ int ask_password_tty(
if (FLAGS_SET(flags, ASK_PASSWORD_ECHO))
(void) loop_write(ttyfd, passphrase + codepoint, n, false);
else
(void) loop_write(ttyfd, "*", 1, false);
(void) loop_write(
ttyfd,
special_glyph(SPECIAL_GLYPH_BULLET),
SIZE_MAX,
false);
codepoint = p;
}
}