From 1f065a86919f146f57bf6ef593c32e80da6ffeb3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 14 Feb 2019 10:41:59 +0100 Subject: [PATCH] wall: remove unnecessary warning wall(1) may be used in scripts or in pipe. In this case report failed ttyname() does not make sense, especially if the code does not depend on on this function. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1608176 Signed-off-by: Karel Zak --- term-utils/wall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/term-utils/wall.c b/term-utils/wall.c index 48e654ac66..4c49ebaa1b 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -359,7 +359,6 @@ static char *makemsg(char *fname, char **mvec, int mvecsz, where = ttyname(STDOUT_FILENO); if (!where) { where = "somewhere"; - warn(_("cannot get tty name")); } else if (strncmp(where, "/dev/", 5) == 0) where += 5; -- 2.47.2