s3: smbd: Add default ACLS can only be set on directory check to smb_set_posix_acl().
authorJeremy Allison <jra@samba.org>
Tue, 18 Jun 2019 22:29:25 +0000 (15:29 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 24 Jun 2019 18:49:10 +0000 (18:49 +0000)
commit77454ecfbd8f9ac662aaaf47579927073f494552
tree3504a2bb2664421d2f8abc1235e951653e75b0db
parent503e1243d2c06b16aedbd1068dbf1da37ddd176f
s3: smbd: Add default ACLS can only be set on directory check to smb_set_posix_acl().

This was already being checked in the lower layer,
so no change in behavior, just an efficiency and
clarity change.

Just move an extra check here so we refuse the
set if a default ACL is sent on a file object
before we go into the lower layers.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/trans2.c