[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#240880: xdm: doesn't clean utmp entries



On Mon, Mar 29, 2004 at 11:26:22AM -0800, Marc Wilson wrote:
> On Sun, Mar 28, 2004 at 11:19:14AM +0800, Dan Jacobson wrote:
[...]
> Yes, oh clueless one... and of course you want to remove the possibility of
> cleaning that up, witness bug #239651.  Do you ever keep track of your own
> bug reports?

Just FYI, you didn't mail 240880-submitter, so this berating might not
be seen by Dan.

> Here you go:
> 
> #!/bin/sh
> #
> # /etc/X11/xdm/Xreset
> #
> # This script is run as root after the X session ends.
> 
> # remove the utmp entry for the session
> if grep -qs ^use-sessreg /etc/X11/xdm/xdm.options && command -v sessreg > /dev/null 2>&1; then
>   sessreg -d -l $DISPLAY -u /var/run/utmp -x /etc/X11/xdm/Xservers $USER
> fi
> 
> exit 0
> 
> # vim:set ai et sts=2 sw=2 tw=0:
> 
> I'm not saying I agree with Branden's decision to unilaterally stop
> shipping /etc/X11/xdm/Xreset in order to clean up the xconsole stuff, but
> it's not like it's hard to do this yourself.

I might have gotten carried away there.

We can always put Xreset back to handle the sessreg stuff.  It's just
the xconsole stuff that turned out to be dumb.

Comments?

-- 
G. Branden Robinson                |
Debian GNU/Linux                   |           If existence exists,
branden@debian.org                 |           why create a creator?
http://people.debian.org/~branden/ |

Attachment: signature.asc
Description: Digital signature


Reply to: