diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-11-24 14:16:41 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-11-24 14:16:41 +0000 |
commit | 058a5aee901e6609969ef7e1d482a720a84a4a12 (patch) | |
tree | 64dec5228fbdc2371ad88e1252fe7d52650de823 /source/groupdb/mapping.c | |
parent | ad7afbfdea600a62fa1550bd354996ad38807533 (diff) | |
download | samba-058a5aee901e6609969ef7e1d482a720a84a4a12.tar.gz samba-058a5aee901e6609969ef7e1d482a720a84a4a12.tar.xz samba-058a5aee901e6609969ef7e1d482a720a84a4a12.zip |
added "net join" command
this completes the first stage of the smbd ADS support
Diffstat (limited to 'source/groupdb/mapping.c')
-rw-r--r-- | source/groupdb/mapping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/groupdb/mapping.c b/source/groupdb/mapping.c index 92a98ff7a44..c39bb8cdffb 100644 --- a/source/groupdb/mapping.c +++ b/source/groupdb/mapping.c @@ -233,7 +233,7 @@ add a privilege to a privilege array ****************************************************************************/ BOOL add_privilege(uint32 *privilege, uint32 priv) { - int i; + int i=0; while (i<PRIV_ALL_INDEX && privilege[i]!=0 && privilege[i]!=priv) i++; @@ -262,6 +262,7 @@ BOOL add_all_privilege(uint32 *privilege) add_privilege(privilege, SE_PRIV_ADD_USERS); add_privilege(privilege, SE_PRIV_ADD_MACHINES); add_privilege(privilege, SE_PRIV_PRINT_OPERATOR); + return True; } /**************************************************************************** @@ -301,7 +302,6 @@ BOOL default_group_mapping(void) fstring str_admins; fstring str_users; fstring str_guests; - int i; uint32 privilege_none[PRIV_ALL_INDEX]; uint32 privilege_all[PRIV_ALL_INDEX]; |