diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-03 22:54:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-03 22:54:31 +0100 |
commit | b0ebd12de22226fd7b69140ccd700efda3eb5fa6 (patch) | |
tree | efcf8d59607e53b8bf2fb453629b05bea28cc3ce /sys-apps/util-linux/files/util-linux-2.39.1-wall-no-tty.patch | |
parent | 99547b97ff461f107e03ed5323b6286a66677bce (diff) |
gentoo auto-resync : 03:08:2023 - 22:54:30
Diffstat (limited to 'sys-apps/util-linux/files/util-linux-2.39.1-wall-no-tty.patch')
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.39.1-wall-no-tty.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/util-linux/files/util-linux-2.39.1-wall-no-tty.patch b/sys-apps/util-linux/files/util-linux-2.39.1-wall-no-tty.patch new file mode 100644 index 000000000000..e95dbc358d33 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.39.1-wall-no-tty.patch @@ -0,0 +1,26 @@ +https://bugs.gentoo.org/911336 +https://github.com/util-linux/util-linux/pull/2412 + +From 7d3713a6d541be0bac0bb78cc8fea1620583fd08 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Sat, 29 Jul 2023 17:32:57 -0400 +Subject: [PATCH] wall: do not error for ttys that do not exist + +Some wayland display managers (GDM) put strings like "seat0" in the +ut_line field of utmp entries. These are not valid tty devices. + +Avoid writing a confusing error message for ttys that do not exist. + +Bug: https://bugs.gentoo.org/911336 +Signed-off-by: Mike Gilbert <floppym@gentoo.org> +--- a/term-utils/ttymsg.c ++++ b/term-utils/ttymsg.c +@@ -100,7 +100,7 @@ ttymsg(struct iovec *iov, size_t iovcnt, char *line, int tmout) { + * if not running as root; not an error. + */ + if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) < 0) { +- if (errno == EBUSY || errno == EACCES) ++ if (errno == EBUSY || errno == EACCES || errno == ENOENT) + return NULL; + + len = snprintf(errbuf, sizeof(errbuf), "%s: %m", device); |