Add check_user_share_access() which factors out the share security and read_only...
authorJeremy Allison <jra@samba.org>
Fri, 4 Jan 2013 22:27:18 +0000 (14:27 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 9 Jan 2013 04:29:22 +0000 (15:29 +1100)
commit8475f206b296362fc2473bf6eb4b6d51834f8245
treecf1c7cc693395c9d5d7d4b3efec96226023b8d93
parent6d7bffa6069ef41c36c40453681372973bba0c86
Add check_user_share_access() which factors out the share security and read_only flag setting code.

Allows this to be called from both make_connection_snum() as well as check_user_ok().
Gives a consistent share security check function.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/proto.h
source3/smbd/uid.c