Subject: CVS commit: src/usr.bin/last
To: None <source-changes@NetBSD.org>
From: Christian Biere <cbiere@netbsd.org>
List: source-changes
Date: 01/06/2007 14:00:36
Module Name: src
Committed By: cbiere
Date: Sat Jan 6 14:00:36 UTC 2007
Modified Files:
src/usr.bin/last: want.c
Log Message:
- 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.
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/usr.bin/last/want.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.