use result of open(2) to check for presence
commit88fb958baa1066af23348c44a78b812be2344088
authorAlex Riesen <raa.lkml@gmail.com>
Thu, 5 Jan 2006 11:43:34 +0000 (5 12:43 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 6 Jan 2006 01:22:51 +0000 (5 17:22 -0800)
treecf5d0eb59166f8cdac1d80c55365aff72030d28d
parentd9e08be9d5b632aed84d4ee870543babafe6614b
use result of open(2) to check for presence

Not that the stat against open race would matter much in this context,
but that simplifies
the code a bit. Also some diagnostics added (why the open failed)

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
config.c