Subject: bin/26934: last has no easy option to read wtmpx files
To: None <>
From: None <>
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
>Originator:     Curt Sampson
>Release:        NetBSD 2.0_BETA 2004-07-12
System: NetBSD 2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Mon Jul 12 01:40:25 UTC 2004 i386
Architecture: i386
Machine: i386
    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.
    See above.
    Add an option (-x?) which makes last assume wtmpx format.