Fixed handling for non existing files.

svn path=/trunk/; revision=2808
This commit is contained in:
Hartmut Birr 2002-04-01 22:05:43 +00:00
parent ea5f41e8a5
commit e806f90b71

View file

@ -9,6 +9,9 @@ int _stat(const char *path, struct stat *buffer)
int fd = _open(path,_O_RDONLY);
int ret;
if (fd < 0)
return -1;
ret = fstat(fd,buffer);
_close(fd);