Bug 66765

Summary: "lastcomm string" is broken on -current
Product: Base System Reporter: Dan Nelson <dnelson>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.2-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Dan Nelson 2004-05-17 18:30:17 UTC
	

The lastcomm code has an ugly hack where lseek and fread are mixed in
an attempt to access file offsets past 4gb.  Unfortunately, the last
attempt to fix it ended up breaking the case where a match string is
passed on the argument.

Fix: Remove all the lseek code and use good old fseeko.  Simplifies the loop
a lot.
How-To-Repeat: 	

Run "lastcomm zzz" and notice you either get no results or an error.
Comment 1 Hiten Pandya freebsd_committer freebsd_triage 2004-05-20 20:47:01 UTC
State Changed
From-To: open->closed

Patch committed.  Thanks Dan!