]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: do not emit beep in wall messages
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Oct 2022 11:59:45 +0000 (13:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Oct 2022 19:43:31 +0000 (21:43 +0200)
Those may go via the PC speaker, which is annoying and unexpected.
Most people have it off, so this doesn't work reliably anyway, so we can
disable it without much loss.

Fixes #23520.

src/shared/utmp-wtmp.c

index c7e89ba6a6a39498e6de69601db20d0141476f65..d2c8473c60f1dc8acc183d07664f40b2799166b5 100644 (file)
@@ -360,7 +360,7 @@ int utmp_wall(
         }
 
         if (asprintf(&text,
-                     "\a\r\n"
+                     "\r\n"
                      "Broadcast message from %s@%s%s%s (%s):\r\n\r\n"
                      "%s\r\n\r\n",
                      un ?: username, hn,