* fhandler.cc (rootdir): Add and use second argument.

* winsup.h (rootdir): Add second argument in declaration.
	* path.cc (fs_info::update): Modify call to rootdir.
	* syscalls.cc (check_posix_perm): Ditto.
	(statfs): Ditto. Move syscall_printf near top.
This commit is contained in:
Corinna Vinschen
2004-04-10 19:24:55 +00:00
parent 56551a9bfb
commit 7224437c62
5 changed files with 38 additions and 27 deletions

View File

@@ -361,9 +361,8 @@ fs_info::update (const char *win32_path)
{
char fsname [CYG_MAX_PATH];
char root_dir [CYG_MAX_PATH];
strncpy (root_dir, win32_path, CYG_MAX_PATH);
if (!rootdir (root_dir))
if (!rootdir (win32_path, root_dir))
{
debug_printf ("Cannot get root component of path %s", win32_path);
clear ();