* 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:
Christopher Faylor
2003-12-15 04:16:42 +00:00
parent 228f99a6c1
commit 9908d9977b
6 changed files with 17 additions and 6 deletions

View File

@@ -556,7 +556,7 @@ path_conv::check (const char *src, unsigned opt,
if (dev.major == DEV_CYGDRIVE_MAJOR)
{
if (!component)
fileattr = FILE_ATTRIBUTE_DIRECTORY;
fileattr = FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_READONLY;
else
{
dev.devn = FH_FS;