s3:smbd: ease file server upgrades from 3.6 and earlier with "acl allow execute aways"
commit1e29d730663382875d96c275c60e022a1c33a2d1
authorMichael Adam <obnox@samba.org>
Mon, 2 Sep 2013 15:37:50 +0000 (2 17:37 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 10 Sep 2013 21:33:12 +0000 (10 23:33 +0200)
tree90c243918b7d6f51fca3023df8da331cecce1c95
parentde3bc10ef69f23e7dab9fc3f6990bb403824b14e
s3:smbd: ease file server upgrades from 3.6 and earlier with "acl allow execute aways"

3.6 and earlier allowed open for execution when execute permissions are
not present on a file. This has been fixed in Samba 4.0.

This patch changes smbd to skip the execute bit from the ACL check
in the open code if "acl allow execute always = yes", hence
re-establishing the old behaviour in this case.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/smbd/open.c