* winsup.h (access_worker): Declare with added fhandler_base parameter.
* syscalls.cc (access_worker): Accommodate extra fhandler_base argument. Use it instead of stat_worker to determine stat information, when appropriate. * fhandler.cc (fhandler_base::device_access_denied): Pass fhandler pointer to access_worker so that it can use the proper method for determining stat information. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Ditto.
This commit is contained in:
@@ -632,7 +632,7 @@ fhandler_disk_file::opendir ()
|
||||
set_errno (ENOMEM);
|
||||
goto free_dirname;
|
||||
}
|
||||
else if (access_worker (pc, R_OK) != 0)
|
||||
else if (access_worker (pc, R_OK, this) != 0)
|
||||
goto free_dirent;
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user