Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 866642 Details for
Bug 911336
sys-apps/util-linux - wall command displays error message for ttys that do not exist
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
util-linux patch
0001-wall-do-not-error-for-ttys-that-do-not-exist.patch (text/plain), 1.08 KB, created by
Mike Gilbert
on 2023-07-29 21:37:20 UTC
(
hide
)
Description:
util-linux patch
Filename:
MIME Type:
Creator:
Mike Gilbert
Created:
2023-07-29 21:37:20 UTC
Size:
1.08 KB
patch
obsolete
>From 8ee6b76040065c9e9c56cadf8d4bd9aeff669210 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> >--- > term-utils/ttymsg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/term-utils/ttymsg.c b/term-utils/ttymsg.c >index 14d6ca647..faa0344fe 100644 >--- 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); >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 911336
: 866642