Subject: bin/26934: last has no easy option to read wtmpx files
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <cjs@cynic.net>
List: netbsd-bugs
Date: 09/13/2004 11:15:57
>Number:         26934
>Category:       bin
>Synopsis:       last has no easy option to read wtmpx files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 13 02:36:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Curt Sampson
>Release:        NetBSD 2.0_BETA 2004-07-12
>Organization:
>Environment:
System: NetBSD dev1.tabemo.com 2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Mon Jul 12 01:40:25 UTC 2004 autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/i386/OBJ/autobuild/netbsd-2-0/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
    There's no easy way to specify that an arbitrary file (given with -f)
    is a wtmpx format file. So, this works nicely:
	last -f /var/log/wtmp.0
    but this does not:
	last -f /var/log/wtmpx.0
    because the filename does not end in X. To read the file, you must either
    rename it, make a symlink to it, or possibly one can use the -H, -L, etc.
    options, though there is not enough information in the manpage to figure
    out how to do that.
>How-To-Repeat:
    See above.
>Fix:
    Add an option (-x?) which makes last assume wtmpx format.
>Release-Note:
>Audit-Trail:
>Unformatted: