Subject: PR/35354 CVS commit: src/usr.bin/last
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Christian Biere <cbiere@netbsd.org>
List: netbsd-bugs
Date: 01/06/2007 14:05:03
The following reply was made to PR bin/35354; it has been noted by GNATS.

From: Christian Biere <cbiere@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/35354 CVS commit: src/usr.bin/last
Date: Sat,  6 Jan 2007 14:00:36 +0000 (UTC)

 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.