The wall(1) utility now replaces non-printable ASCII characters with a
quotation mark. This results in a funny message:

        ?*** System shutdown message from consus@localhost ***?

This patch fixes the issue by removing '\007' from the shutdown
notification.
---
 sbin/shutdown/shutdown.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index f85f103..419bdc4 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -294,7 +294,7 @@ timewarn(int timeleft)
        }
 
        (void)fprintf(pf,
-           "\007*** %sSystem shutdown message from %s@%s ***\007\n",
+           "*** %sSystem shutdown message from %s@%s ***\n",
            timeleft ? "": "FINAL ", whom, hostname);
 
        if (timeleft > 10*60)
-- 
2.9.0

Reply via email to