* fhandler.cc (fhandler_base::open): Only set R/O attribute if ACLs
are not used.
This commit is contained in:
parent
1f14755fd2
commit
50bd7b0bb6
@ -1,3 +1,8 @@
|
||||
2009-08-26 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler.cc (fhandler_base::open): Only set R/O attribute if ACLs
|
||||
are not used.
|
||||
|
||||
2009-08-24 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* mount.cc (fs_info::update): Add comment.
|
||||
|
@ -553,8 +553,9 @@ fhandler_base::open (int flags, mode_t mode)
|
||||
{
|
||||
file_attributes |= FILE_ATTRIBUTE_NORMAL;
|
||||
|
||||
/* If mode has no write bits set, we set the R/O attribute. */
|
||||
if (!(mode & (S_IWUSR | S_IWGRP | S_IWOTH)))
|
||||
/* If mode has no write bits set, and ACLs are not used, we set
|
||||
the DOS R/O attribute. */
|
||||
if (!has_acls () && !(mode & (S_IWUSR | S_IWGRP | S_IWOTH)))
|
||||
file_attributes |= FILE_ATTRIBUTE_READONLY;
|
||||
|
||||
/* If the file should actually be created and has ACLs,
|
||||
|
Loading…
Reference in New Issue
Block a user