mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
param: rename lp function and variable from "addgroup_script" to "add_group_script"
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
bc455c34da
commit
d53a9a529c
@ -367,7 +367,7 @@ FN_GLOBAL_LIST(usershare_prefix_deny_list, usershare_prefix_deny_list)
|
||||
FN_GLOBAL_LIST(winbind_nss_info, winbind_nss_info)
|
||||
FN_GLOBAL_LIST(wins_server_list, wins_server_list)
|
||||
FN_GLOBAL_STRING(abort_shutdown_script, abort_shutdown_script)
|
||||
FN_GLOBAL_STRING(addgroup_script, addgroup_script)
|
||||
FN_GLOBAL_STRING(add_group_script, add_group_script)
|
||||
FN_GLOBAL_STRING(addmachine_script, addmachine_script)
|
||||
FN_GLOBAL_STRING(addport_cmd, addport_cmd)
|
||||
FN_GLOBAL_STRING(addprinter_cmd, addprinter_cmd)
|
||||
|
@ -2620,7 +2620,7 @@ static struct parm_struct parm_table[] = {
|
||||
.label = "add group script",
|
||||
.type = P_STRING,
|
||||
.p_class = P_GLOBAL,
|
||||
.offset = GLOBAL_VAR(addgroup_script),
|
||||
.offset = GLOBAL_VAR(add_group_script),
|
||||
.special = NULL,
|
||||
.enum_list = NULL,
|
||||
.flags = FLAG_ADVANCED,
|
||||
|
@ -213,11 +213,11 @@ int smb_create_group(const char *unix_group, gid_t *new_gid)
|
||||
|
||||
/* defer to scripts */
|
||||
|
||||
if ( *lp_addgroup_script(talloc_tos()) ) {
|
||||
if ( *lp_add_group_script(talloc_tos()) ) {
|
||||
TALLOC_CTX *ctx = talloc_tos();
|
||||
|
||||
add_script = talloc_strdup(ctx,
|
||||
lp_addgroup_script(ctx));
|
||||
lp_add_group_script(ctx));
|
||||
if (!add_script) {
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user