* libmisc/failure.c: Check return values. If lseek() failed, avoid

reading or writing at an unspecified location. Log to syslog in
	case of failure when reading a faillog entry or writing in
	faillog or btmp.
	* libmisc/failure.c: Check if the file exist before opening it.
	* libmisc/failure.c: Log failures of open() and close() when
	necessary.
This commit is contained in:
nekral-guest
2008-06-14 23:38:43 +00:00
parent 0afd6a8312
commit 1b631c42ef
2 changed files with 79 additions and 28 deletions

View File

@@ -1,3 +1,13 @@
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.c: Check return values. If lseek() failed, avoid
reading or writing at an unspecified location. Log to syslog in
case of failure when reading a faillog entry or writing in
faillog or btmp.
* libmisc/failure.c: Check if the file exist before opening it.
* libmisc/failure.c: Log failures of open() and close() when
necessary.
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
* lib/prototypes.h: Add the getrange() prototype.