When creating a new file/directory, we need to obey the create mask/directory mask...
commitc251a6b0442abc13bc8be4ff8de324c1d7706a78
authorJeremy Allison <jra@samba.org>
Tue, 2 Oct 2012 17:25:14 +0000 (2 10:25 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 2 Oct 2012 20:27:17 +0000 (2 22:27 +0200)
tree8ed3b6dc480e8c48a59911d3473e1fc7caab2c9f
parent8f0ecbbbeebff0174579a78827d384067cd4cbb7
When creating a new file/directory, we need to obey the create mask/directory mask parameters.

Currently we call FSET_NT_ACL to inherit any ACLs on create. However
FSET_NT_ACL uses the security mask/directory security mask parameters
instead of the create mask/directory mask parameters.

Swap them temporarily when creating to ensure the correct masks
are applied.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Oct  2 22:27:17 CEST 2012 on sn-devel-104
source3/smbd/open.c