s3:smbd: check the share level access mask in smbd_calculate_access_mask()
authorStefan Metzmacher <metze@samba.org>
Sun, 10 Jul 2011 11:03:51 +0000 (13:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 19:33:20 +0000 (21:33 +0200)
commit896f105ed40dc04f83bcbfac367b309c8d957f86
tree7dd15d6d22b3b106dd67f1a1f9331eb729535ea1
parentce66d4e4a885add09edfa8e6d5eab0f3b5d63081
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
source3/smbd/open.c