* fhandler.cc (rootdir): Don't set errno.

* syscalls.cc (statvfs): Set errno to ENOTDIR if rootdir() failed.
This commit is contained in:
Corinna Vinschen
2005-06-24 09:12:15 +00:00
parent 6bfab24ef3
commit 3b12a57cb6
3 changed files with 11 additions and 7 deletions

View File

@@ -1727,7 +1727,10 @@ statvfs (const char *fname, struct statvfs *sfs)
path_conv full_path (fname, PC_SYM_FOLLOW);
if (!rootdir (full_path, root))
return -1;
{
set_errno (ENOTDIR);
return -1;
}
ULARGE_INTEGER availb, freeb, totalb;
DWORD spc, bps, availc, freec, totalc, vsn, maxlen, flags;