* dtable.cc (dtable::build_fhandler): Accept an optional path_conv argument.
If available, use this to calculate path name and device number. * dtable.h (dtable): Reflect above change. * fhandler.h (fhandler_base): Declare virtual method which accepts path_conv rather than path string as first argument. * fhandler.cc (fhandler_base::open): Define above new method. * syscalls.cc (_open): Set aside a path_conv variable for use in build_fhandler and subsequent call to open.
This commit is contained in:
@@ -289,6 +289,12 @@ fhandler_base::get_default_fmode (int flags)
|
||||
return __fmode;
|
||||
}
|
||||
|
||||
int
|
||||
fhandler_base::open (path_conv& real_path, int flags, mode_t mode)
|
||||
{
|
||||
return open ((char *) real_path, flags, mode);
|
||||
}
|
||||
|
||||
/* Open system call handler function.
|
||||
Path is now already checked for symlinks */
|
||||
int
|
||||
|
Reference in New Issue
Block a user