diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-15 07:16:42 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-15 07:16:42 +0300 |
commit | 9908d9977b131249201b9c19219fd7d61fd65701 (patch) | |
tree | f57144fb183b3f75b68602d708a6704fde7be29a /winsup/cygwin/path.cc | |
parent | 228f99a6c1a60d778fe0182ad9e66b8cd755daf8 (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 11350d25b..d801a6665 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -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; |