mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Fix bug #8972 - Directory group write permission bit is set if unix extensions are enabled
We can't manipulate file_attributes if it's a posix call. I'll look at adding a test for this asap. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jun 5 04:26:11 CEST 2012 on sn-devel-104
This commit is contained in:
parent
01106230dd
commit
4accd2396e
@ -2714,8 +2714,10 @@ static NTSTATUS open_directory(connection_struct *conn,
|
||||
return NT_STATUS_NOT_A_DIRECTORY;
|
||||
}
|
||||
|
||||
/* Ensure we have a directory attribute. */
|
||||
file_attributes |= FILE_ATTRIBUTE_DIRECTORY;
|
||||
if (!(file_attributes & FILE_FLAG_POSIX_SEMANTICS)) {
|
||||
/* Ensure we have a directory attribute. */
|
||||
file_attributes |= FILE_ATTRIBUTE_DIRECTORY;
|
||||
}
|
||||
|
||||
DEBUG(5,("open_directory: opening directory %s, access_mask = 0x%x, "
|
||||
"share_access = 0x%x create_options = 0x%x, "
|
||||
|
Loading…
Reference in New Issue
Block a user