Subject: CVS commit: src/lib/libc/gen
To: None <source-changes@NetBSD.org>
From: Matt Thomas <matt@netbsd.org>
List: source-changes
Date: 08/25/2003 23:09:38
Module Name:	src
Committed By:	matt
Date:		Mon Aug 25 23:09:37 UTC 2003

Modified Files:
	src/lib/libc/gen: utmpx.c

Log Message:
When updating wtmpx, if the write fails make sure to close the file (to
release the lock held on it).  Use O_SHLOCK when adding just one record
since O_APPEND will enforce the atomicity that is required.


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 src/lib/libc/gen/utmpx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.