* 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:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user