From 9908d9977b131249201b9c19219fd7d61fd65701 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 15 Dec 2003 04:16:42 +0000 Subject: * 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. --- winsup/cygwin/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/path.cc') 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; -- cgit v1.2.3