Bug#515144: coreutils: who reports different output from who /var/run/utmp

2009-02-18 Thread Michael Stone

On Wed, Feb 18, 2009 at 06:33:10PM -0500, Aleks Bromfield wrote:

Thanks for looking into this!


I forgot the original question. :-) The reason the output is different 
is that without arguments who will ignore any utmp entry for which the 
recorded process id doesn't exist, while it does not do that if you 
specify a file. (This makes sense if you imagine that the use for 
specifying a file is to look at archived files.) The point of that is to 
try to suppress odd entries in cases like yours; in the expected case 
there should be no difference. (Because dead processes would be 
marked as DEAD; that's another problem with your file--some process 
isn't updating the file on exit, so some of the duplicated lines assert 
that multiple PIDs are active on the same pty.)


Mike Stone



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#515144: coreutils: who reports different output from who /var/run/utmp

2009-02-13 Thread Aleks Bromfield
Package: coreutils
Version: 6.10-6
Severity: important

I recently noticed that who reports different output depending on
whether or not the default file is specified. That is,

  who

gives different output

  who /var/run/utmp

even though strace confirms that they are both reading the same files.

So far, specifying a filename always produces more output, not less.

~ Aleks

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (750, 'testing'), (80, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages coreutils depends on:
ii  libacl1   2.2.47-2   Access control list shared library
ii  libc6 2.7-18 GNU C Library: Shared libraries
ii  libselinux1   2.0.65-5   SELinux shared libraries

coreutils recommends no packages.

coreutils suggests no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#515144: coreutils: who reports different output from who /var/run/utmp

2009-02-13 Thread Michael Stone

On Fri, Feb 13, 2009 at 05:12:38PM -0500, Aleks Bromfield wrote:

Package: coreutils
Version: 6.10-6
Severity: important

I recently noticed that who reports different output depending on
whether or not the default file is specified. That is,

 who

gives different output

 who /var/run/utmp


I can't duplicate that.

Mike Stone



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#515144: coreutils: who reports different output from who /var/run/utmp

2009-02-13 Thread Michael Stone

On Fri, Feb 13, 2009 at 05:25:35PM -0500, Aleks Bromfield wrote:

I've attached a utmp file which causes the problem for me.


The file appears to be corrupt, as there are multiple entries for the 
same pty. I'll give it a closer look next week.


Mike Stone




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org