Subject: bin/32596: last(1): -n flag does'nt work.
To: None <,>
From: None <>
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
>Release:        NetBSD 3.99.15 (Fri Jan 13 22:16:21 CET 2006)
System: NetBSD 3.99.15 NetBSD 3.99.15 (CURRENT) #11: Fri Jan 13 22:16:21 CET 2006 i386

Architecture: i386
Machine: i386
	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.

        Run last with "-nflag" .

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*