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

Bug#709112: sessreg: creates/deletes bogus wtmp/utmp entries



Package: x11-xserver-utils
Version: 7.7~3
Severity: important

Hi,

sessreg creates bogus wtmp/utmp entries.

Look below:

root@vpn:/root/ # w
 23:39:11 up 7 days,  3:12,  0 users,  load average: 0.32, 0.12, 0.07
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT

root@vpn:/root/ # sessreg -a -l pts/3 -h foo.bar mcp

root@vpn:/root/ # w
 23:39:26 up 7 days,  3:12,  2 users,  load average: 0.25, 0.11, 0.06
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
mcp      pts/3    pts/3            23:39    0.00s  0.00s  0.09s -bash
mcp      pts/3    foo.bar          23:39    0.00s  0.00s  0.09s -bash

root@vpn:/root/ # last
mcp      pts/3        pts/3            Mon May 20 23:39   still logged in

wtmp begins Mon May 20 23:39:24 2013


root@vpn:/root/ # sessreg -d -l pts/3 -h foo.bar mcp

root@vpn:/root/ # w
 23:39:36 up 7 days,  3:12,  0 users,  load average: 0.21, 0.11, 0.06
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT

root@vpn:/root/ # last
mcp      pts/3        pts/3            Mon May 20 23:39 - 23:39  (00:00)

wtmp begins Mon May 20 23:39:24 2013


so as you see, creating creates 2 entries, removing leaves an entry where
the hostname is also the PTY device.

The expected result is one entry for session add, with correct hostname,
and for remove leaving the entry with the correct hostname also.

Same happens on Squeeze, Wheezy and Sid.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.44-grsec (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages x11-xserver-utils depends on:
ii  cpp          4:4.7.2-1
ii  libc6        2.17-3
ii  libice6      2:1.0.8-2
ii  libx11-6     2:1.5.0-1
ii  libxaw7      2:1.0.10-2
ii  libxcursor1  1:1.1.13-1
ii  libxext6     2:1.3.1-2
ii  libxi6       2:1.6.1-1
ii  libxmu6      2:1.1.1-1
ii  libxmuu1     2:1.1.1-1
ii  libxrandr2   2:1.3.2-2
ii  libxrender1  1:0.9.7-1
ii  libxt6       1:1.1.3-1
ii  libxxf86vm1  1:1.1.2-1

x11-xserver-utils recommends no packages.

Versions of packages x11-xserver-utils suggests:
pn  cairo-5c        <none>
pn  nickle          <none>
pn  xorg-docs-core  <none>

-- no debconf information


Reply to: