Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334349 - x11-terms/rxvt-unicode writes bad entries in /var/run/utmp
Summary: x11-terms/rxvt-unicode writes bad entries in /var/run/utmp
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 20:22 UTC by Timo A. Hummel
Modified: 2020-12-07 17:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo A. Hummel 2010-08-24 20:22:43 UTC
When I use rxvt-unicode (urxvt) as terminal emulator, I receive no output for the who or users. It seems that urxvt fails to update utmp correctly.

Here's a dump of utmp with xterm and urxvt:

with xterm:
[7] [18481] [ts/8] [felicitus] [pts/8       ] [:0.0                ] [0.0.0.0        ] [Tue Aug 24 22:19:20 2010    ]


with urxvt:
[8] [15768] [ts/1] [felicitus] [pts/1       ] [                    ] [0.0.0.0        ] [Tue Aug 24 20:09:30 2010    ]

The only difference is that the host field isn't filled, so it seems that urxvt has utmp access, but fails to set the host.



Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-27 03:51:43 UTC
I can reproduce that here. /var/run/utmp is perhaps not writeable. I wonder how xterm does that.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-27 03:54:13 UTC

*** This bug has been marked as a duplicate of bug 88593 ***
Comment 3 Timo A. Hummel 2010-08-27 03:57:05 UTC
Sorry have to reopen this issue.

I'm not sure about utmp, but urxvt actually adds an entry to utmp here - just with the missing :0.0 entry.

I have seen urxvt on other systems like debian, where the "users" command did output the correct user, but unfortunately I couldn't have a look at the utmp there.

For xterm, they are using libutempter or similar to write to utmp.

I will setup a debian or ubuntu system soon to see if utmp has similar permissions there.


Again, I can say for sure that urxvt adds an entry to utmp, but it's missing the :0.0 address when doing the dump.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-27 04:13:56 UTC
ah ok
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-27 04:16:57 UTC
sys-libs/libutempter is what xterm uses.
Comment 6 Marek Szuba archtester gentoo-dev 2020-12-07 17:22:57 UTC
Presumably fixed some time within the last 10 years, looks OK to me now.