* 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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user