Subject: bin/32596: last(1): -n flag does'nt work.
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <claudio@netcat.it>
List: netbsd-bugs
Date: 01/22/2006 13:20:03
>Number: 32596
>Category: bin
>Synopsis: last(1): -n flag does'nt work.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 22 13:20:00 +0000 2006
>Originator: ilfoglionascosto@netcat.it
>Release: NetBSD 3.99.15 (Fri Jan 13 22:16:21 CET 2006)
>Organization:
>Environment:
System: NetBSD clabsd.org 3.99.15 NetBSD 3.99.15 (CURRENT) #11: Fri Jan 13 22:16:21 CET 2006 claudio@clabsd.org:/usr/obj/sys/arch/i386/compile/CURRENT i386
Architecture: i386
Machine: i386
>Description:
Executing last(1) with "-narg" (without space between '-n' and 'arg'
it crash (as follow) and create a core dump.
$ last -n9 ; ls -l last.core
Memory fault (core dumped)
-rw------- 1 claudio users 74728 Jan 22 14:14 last.core
Using the flash in the "correct" mode these are the results:
$ last -n 9
wtmpx begins Tue Jan 17 2006 14:33:22
Probably '-n' should be removed in favour of -NUMBER flag.
>How-To-Repeat:
Run last with "-nflag" .
>Fix:
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/MU d-@ s: a--> C++(+++) UB++>$ P+> !L E--- W++(+++)
N+@ o--> K? w+@> O-@> M- V? PS+@ PE+@ Y+ PGP> t(-)@ 5?
X+ R? tv-- b+> DI-- D? G e+@> h--@> r y*
------END GEEK CODE BLOCK------