tty-ask-pwd-agent: fix message forwarded to wall(1)
authorFranck Bui <fbui@suse.com>
Mon, 16 Sep 2019 20:03:43 +0000 (22:03 +0200)
committerMichael Biebl <biebl@debian.org>
Fri, 15 Nov 2019 21:01:17 +0000 (21:01 +0000)
Commit a1c111c2d12429d2 wrongly replaced '!' with ':' when the message is
forwarded to wall(1).

Indeed in this case we are not requesting the user for providing a password but
instead we are simply displaying a message to suggest starting
tty-ask-password-agent for providing the password.

(cherry picked from commit 65943cc3507bf54390d598e06df60771e913fb72)
(cherry picked from commit eb552417420fa9680b508519e926b140d5a0be25)

Gbp-Pq: Name tty-ask-pwd-agent-fix-message-forwarded-to-wall-1.patch

src/tty-ask-password-agent/tty-ask-password-agent.c

index 5f5245e48a3e53bba2de0982ac1c943fe252d558..d0c070de84a3022e429902efa675569b62359e94 100644 (file)
@@ -322,7 +322,7 @@ static int parse_password(const char *filename, char **wall) {
 
                 if (asprintf(&_wall,
                              "%s%sPassword entry required for \'%s\' (PID %u).\r\n"
-                             "Please enter password with the systemd-tty-ask-password-agent tool:",
+                             "Please enter password with the systemd-tty-ask-password-agent tool.",
                              strempty(*wall),
                              *wall ? "\r\n\r\n" : "",
                              message,