From 13a6310f827797bc1619b7740ef64928f4fa17d4 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 24 Dec 2013 16:04:20 +1300 Subject: [PATCH] param: Rename variable used for lp_usershare_max_shares iUsershareMaxShares Signed-off-by: Andrew Bartlett Signed-off-by: Garming Sam Reviewed-by: Jeremy Allison --- lib/param/param_functions.c | 2 +- lib/param/param_table.c | 2 +- source3/param/loadparm.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c index 01fd4061aa7..e3ffc78eb74 100644 --- a/lib/param/param_functions.c +++ b/lib/param/param_functions.c @@ -340,7 +340,7 @@ FN_GLOBAL_INTEGER(srv_minprotocol, srv_minprotocol) FN_GLOBAL_INTEGER(syslog, syslog) FN_GLOBAL_INTEGER(usernamelevel, usernamelevel) FN_GLOBAL_INTEGER(username_map_cache_time, username_map_cache_time) -FN_GLOBAL_INTEGER(usershare_max_shares, iUsershareMaxShares) +FN_GLOBAL_INTEGER(usershare_max_shares, usershare_max_shares) FN_GLOBAL_INTEGER(web_port, web_port) FN_GLOBAL_INTEGER(winbind_cache_time, winbind_cache_time) FN_GLOBAL_INTEGER(winbind_expand_groups, winbind_expand_groups) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 5bc87b53a86..73504fc19a9 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -3652,7 +3652,7 @@ static struct parm_struct parm_table[] = { .label = "usershare max shares", .type = P_INTEGER, .p_class = P_GLOBAL, - .offset = GLOBAL_VAR(iUsershareMaxShares), + .offset = GLOBAL_VAR(usershare_max_shares), .special = NULL, .enum_list = NULL, .flags = FLAG_ADVANCED, diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index eaf8266b4b5..aa7208ced9b 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1017,7 +1017,7 @@ static void init_globals(bool reinit_globals) string_set(&Globals.szUsersharePath, s); SAFE_FREE(s); string_set(&Globals.szUsershareTemplateShare, ""); - Globals.iUsershareMaxShares = 0; + Globals.usershare_max_shares = 0; /* By default disallow sharing of directories not owned by the sharer. */ Globals.usershare_owner_only = true; /* By default disallow guest access to usershares. */ @@ -4525,7 +4525,7 @@ int load_usershare_service(const char *servicename) { SMB_STRUCT_STAT sbuf; const char *usersharepath = Globals.szUsersharePath; - int max_user_shares = Globals.iUsershareMaxShares; + int max_user_shares = Globals.usershare_max_shares; int snum_template = -1; if (*usersharepath == 0 || max_user_shares == 0) { @@ -4597,7 +4597,7 @@ int load_usershare_shares(struct smbd_server_connection *sconn, SMB_STRUCT_STAT sbuf; struct dirent *de; int num_usershares = 0; - int max_user_shares = Globals.iUsershareMaxShares; + int max_user_shares = Globals.usershare_max_shares; unsigned int num_dir_entries, num_bad_dir_entries, num_tmp_dir_entries; unsigned int allowed_bad_entries = ((2*max_user_shares)/10); unsigned int allowed_tmp_entries = ((2*max_user_shares)/10); -- 2.11.4.GIT