s3:smbd: don't apply create/directory mask and modes in apply_default_perms()
authorMichael Adam <obnox@samba.org>
Wed, 5 Dec 2012 14:04:01 +0000 (15:04 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 7 Dec 2012 08:30:12 +0000 (09:30 +0100)
commitd007f60d10f46c4dd9cc94e177267c718d931198
treeec140a3e04c48efcc0635a0f9a4c81839bf4378e
parent9e4889928b495625c8f2c6141a4875ccca8ad9b4
s3:smbd: don't apply create/directory mask and modes in apply_default_perms()

The mask/mode parameters should only apply to a situation with only
pure posix permissions.
Once we are dealing with ACLs and inheritance, we need to do it correctly.

This fixes bug #9462: Users can not be given write permissions any more by default

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2013bb9b4dbed747921df2591068e2765428f57d)
source3/smbd/posix_acls.c