4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-01 12:35:44 +08:00

* syscalls.cc (statfs): Use path_conv method to convert input path.

This commit is contained in:
Christopher Faylor 2000-07-26 01:56:48 +00:00
parent 2a1a9785eb
commit 00edcbb0cb
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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);