* fhandler_disk_file.cc (fhandler_base::fstat_helper): Don't remove

write bits for directories with R/O attribute.
	(fhandler_base::fhaccess): Don't shortcircuit R/O attribute with W_OK
	scenarios for directories.
This commit is contained in:
Corinna Vinschen
2007-10-30 12:32:16 +00:00
parent 2b50cd503e
commit 101f07b907
3 changed files with 11 additions and 3 deletions

View File

@@ -376,7 +376,8 @@ fhandler_base::fhaccess (int flags)
if (is_fs_special ())
/* short circuit */;
else if (has_attribute (FILE_ATTRIBUTE_READONLY) && (flags & W_OK))
else if (has_attribute (FILE_ATTRIBUTE_READONLY) && (flags & W_OK)
&& !pc.isdir ())
goto eaccess_done;
else if (has_acls () && allow_ntsec)
{