stat() behavior differs on Win9x and WinNT

Chris Faylor cgf@cygnus.com
Mon May 8 18:24:00 GMT 2000


On Mon, May 08, 2000 at 11:30:11PM +0200, Corinna Vinschen wrote:
>Chris Faylor wrote:
>> 
>> On Mon, May 08, 2000 at 11:51:53AM +0200, Corinna Vinschen wrote:
>> >"Fifer, Eric" wrote:
>> >>
>> >> With recent snapshots, stat() of a file with an invalid name,
>> >> like stat("abc>def") ('>' is not allowed in file names), does
>> >> not fail on Win98:
>> >> [...]
>> >[...]
>> >IMO the mapping ERROR_BAD_PATHNAME -> EINVAL is incorrect.
>> 
>> I agree.  Is the closest UNIX equivalent ENOENT?  If so, let's make this
>> change.
>
>Yes, it is the closest equiv. Should I check it in?

Yup.

cgf


More information about the Cygwin-developers mailing list