delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/03/13/20:20:59

Message-Id: <m0tx1eF-000GOKC@gwar.ardi.com>
Date: Wed, 13 Mar 96 18:16 MST
From: mat AT ardi DOT com (Mat Hostetter)
To: djgpp-workers AT delorie DOT com
Subject: `stat' fails to detect nonexistent files under WinNT

We have discovered that doing a `stat' of a nonexistent file always
returns 0 under WinNT (in full screen mode), when it should of course
return -1.  This is taking place on a normal FAT volume.

The exact same test program works fine under DOS 6.22 running on the
same FAT volume looking for the same nonexistent file (i.e. `stat'
correctly returns -1).

`stat' correctly returns -1 under WinNT if we give it a huge bogus
filename like:

thisfilenameisreallyreally.too.long.for.my.own.good

Any ideas?

-Mat

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019