diff options
author | Christopher Faylor <me@cgf.cx> | 2000-07-26 01:56:48 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-07-26 01:56:48 +0000 |
commit | 00edcbb0cb001d0a11d71960aa728f3bdf0d013b (patch) | |
tree | 8c73e0ca271ad2512e4882683b4176bc797e6acb | |
parent | 2a1a9785eb7f0a9aca2244da48038ef9de53a8b9 (diff) | |
download | newlib-00edcbb0cb001d0a11d71960aa728f3bdf0d013b.zip newlib-00edcbb0cb001d0a11d71960aa728f3bdf0d013b.tar.gz newlib-00edcbb0cb001d0a11d71960aa728f3bdf0d013b.tar.bz2 |
* syscalls.cc (statfs): Use path_conv method to convert input path.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 748acab..5900f43 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 25 21:50:42 2000 Christopher Faylor <cgf@cygnus.com> + + * syscalls.cc (statfs): Use path_conv method to convert input path. + Tue Jul 25 21:40:51 2000 Christopher Faylor <cgf@cygnus.com> * syscalls.cc (_link): Avoid extraneous call to diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index d593b7f..6d7308c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1646,15 +1646,13 @@ extern "C" int statfs (const char *fname, struct statfs *sfs) { - char full_path[MAX_PATH]; - if (!sfs) { set_errno (EFAULT); return -1; } - cygwin_conv_to_full_win32_path (fname, full_path); + path_conv full_path(fname, PC_SYM_FOLLOW | PC_FULL); char *root = rootdir (full_path); syscall_printf ("statfs %s", root); |