Subject: Re: lib/222: stat(2) returns 0 for path=""
To: Jarle Greipsland <jarle@darling.idt.unit.no>
From: Chris G. Demetriou <cgd@postgres.Berkeley.EDU>
List: netbsd-bugs
Date: 04/09/1994 18:44:02
>>Description:
>stat(2) returns 0 instead of -1 when the first parameter is the empty string.  
>According to the manual page stat(2) will fail (with ENOENT) if the named file 
>does not exist.  I don't think "" exist.....

"" is interpreted by the name lookup routines as ".", which
(hopefully!!!!) exists.


chris

------------------------------------------------------------------------------