Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-06-24 13:12:15 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-06-24 13:12:15 +0400
commit3b12a57cb6575f24443931871ed169c54a802df5 (patch)
tree3bb649f5b9317ea1798afefce2daeecea570c022 /winsup/cygwin/syscalls.cc
parent6bfab24ef3c77d7f3d59a144456fb60f61527994 (diff)
* fhandler.cc (rootdir): Don't set errno.
* syscalls.cc (statvfs): Set errno to ENOTDIR if rootdir() failed.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index e5bd72c13..3f50a7b99 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -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;