s3:smbd: check the share level access mask in smbd_calculate_access_mask()
commitd43f7ffb9fa8449a954d2e9fc9012a00289b41e2
authorStefan Metzmacher <metze@samba.org>
Sun, 10 Jul 2011 11:03:51 +0000 (10 13:03 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jul 2011 19:32:43 +0000 (13 21:32 +0200)
tree4134b2e2cf83e2e25b65dfb68b6b8cd18d0a3998
parent5a1c2b4774c914a45bf2da7e666f6acf7f6927c6
s3:smbd: check the share level access mask in smbd_calculate_access_mask()

I think we should reject invalid access early,
before we might create new files.

Also smbd_check_open_rights() is only called if the file existed.

metze
(cherry picked from commit 896f105ed40dc04f83bcbfac367b309c8d957f86)
source3/smbd/open.c