summaryrefslogtreecommitdiff
path: root/source3/smbd/share_access.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-18 17:40:25 -0700
committerJeremy Allison <jra@samba.org>2007-10-18 17:40:25 -0700
commit30191d1a5704ad2b158386b511558972d539ce47 (patch)
tree4f46e5c4f28f672ab661aa18f45745860970a88c /source3/smbd/share_access.c
parent789856f63ff73fec66298e95c91c60db7bdaf14e (diff)
downloadsamba-30191d1a5704ad2b158386b511558972d539ce47.tar.gz
samba-30191d1a5704ad2b158386b511558972d539ce47.tar.bz2
samba-30191d1a5704ad2b158386b511558972d539ce47.zip
RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
Diffstat (limited to 'source3/smbd/share_access.c')
-rw-r--r--source3/smbd/share_access.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/smbd/share_access.c b/source3/smbd/share_access.c
index a5e0988b0f..512126254a 100644
--- a/source3/smbd/share_access.c
+++ b/source3/smbd/share_access.c
@@ -29,7 +29,7 @@
extern userdom_struct current_user_info;
-static BOOL do_group_checks(const char **name, const char **pattern)
+static bool do_group_checks(const char **name, const char **pattern)
{
if ((*name)[0] == '@') {
*pattern = "&+";
@@ -64,7 +64,7 @@ static BOOL do_group_checks(const char **name, const char **pattern)
return False;
}
-static BOOL token_contains_name(TALLOC_CTX *mem_ctx,
+static bool token_contains_name(TALLOC_CTX *mem_ctx,
const char *username,
const char *sharename,
const struct nt_user_token *token,
@@ -151,7 +151,7 @@ static BOOL token_contains_name(TALLOC_CTX *mem_ctx,
* The other use is the netgroup check when using @group or &group.
*/
-BOOL token_contains_name_in_list(const char *username,
+bool token_contains_name_in_list(const char *username,
const char *sharename,
const struct nt_user_token *token,
const char **list)
@@ -191,7 +191,7 @@ BOOL token_contains_name_in_list(const char *username,
* The other use is the netgroup check when using @group or &group.
*/
-BOOL user_ok_token(const char *username, struct nt_user_token *token, int snum)
+bool user_ok_token(const char *username, struct nt_user_token *token, int snum)
{
if (lp_invalid_users(snum) != NULL) {
if (token_contains_name_in_list(username, lp_servicename(snum),
@@ -247,10 +247,10 @@ BOOL user_ok_token(const char *username, struct nt_user_token *token, int snum)
* The other use is the netgroup check when using @group or &group.
*/
-BOOL is_share_read_only_for_token(const char *username,
+bool is_share_read_only_for_token(const char *username,
struct nt_user_token *token, int snum)
{
- BOOL result = lp_readonly(snum);
+ bool result = lp_readonly(snum);
if (lp_readlist(snum) != NULL) {
if (token_contains_name_in_list(username,