summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorKarel Zak2019-02-14 10:41:59 +0100
committerKarel Zak2019-02-14 10:41:59 +0100
commit3de236340dbf8f7f6c771798497e500a4fb878e0 (patch)
tree58e3a6bc23b6cce51f92670148dd52d3fba1d07b /term-utils
parenttests: update fdisk outputs (diff)
downloadkernel-qcow2-util-linux-3de236340dbf8f7f6c771798497e500a4fb878e0.tar.gz
kernel-qcow2-util-linux-3de236340dbf8f7f6c771798497e500a4fb878e0.tar.xz
kernel-qcow2-util-linux-3de236340dbf8f7f6c771798497e500a4fb878e0.zip
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 <kzak@redhat.com>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/wall.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c
index 48e654ac6..4c49ebaa1 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;