Subject: CVS commit: src/lib/libc/db/hash
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 03/29/2005 23:37:15
Module Name:	src
Committed By:	christos
Date:		Tue Mar 29 23:37:15 UTC 2005

Modified Files:
	src/lib/libc/db/hash: hash.c

Log Message:
Don't refuse to create a hash database on 0 length files. Treat
them as new files the same way that the btree code does.  Note that
we do the fstat() after the open() instead of re-using the previous
result of the stat() to avoid races (we open with O_EXLOCK when we care).


To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 src/lib/libc/db/hash/hash.c

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