Commit Graph

13 Commits

Author SHA1 Message Date
lukem fff2866fd3 Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-12 13:07:21 +00:00
christos 7d9f37ceba fix time format. 2008-12-29 01:25:04 +00:00
lukem 5d427989ff Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
cbiere 0086d50320 Respect the environment variable TMPDIR if set. 2007-01-06 14:29:44 +00:00
cbiere 4b96ead963 Pointing before a memory object is not proper C. Use an index instead of
pointer arithmetic.
2007-01-06 14:11:20 +00:00
cbiere a8d0a33445 - Applied patch by David Holland from PR bin/35354.
- Use EXIT_SUCCESS/EXIT_FAILURE instead of 0/1.
 - Additional check for regular file.
 - Use pread() instead of lseek() + read().
 - Check for partial read to prevent out-of-bounds memory access.
 - Added FIXME to onintr(): This is no proper signal handler albeit might
   not really matter here.
2007-01-06 14:00:36 +00:00
pooka a61b6925e7 support reading wtmp/wtmpx from stdin with -f -
from bin/35329 by David A. Holland
2006-12-27 18:03:26 +00:00
ginsbach 62221c2759 Code indentation fix up. 2006-02-28 17:17:43 +00:00
christos add06817f7 PR/23409: Geoff C. Wing: make sure we only print nul terminated strings. 2005-03-04 17:11:19 +00:00
christos ccd2e5bea8 use sockaddr_snprintf() 2004-11-19 21:41:25 +00:00
christos 8583098c75 Add -n flag to print numeric entries. 2004-11-11 00:54:23 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
christos 8475773db1 Add wtmpx support. 2003-02-17 15:08:57 +00:00