mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
param: rename lp function and variable from "add_share_cmd" to "add_share_command"
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:
parent
b61019f379
commit
317d287be8
@ -371,7 +371,7 @@ FN_GLOBAL_STRING(add_group_script, add_group_script)
|
||||
FN_GLOBAL_STRING(add_machine_script, add_machine_script)
|
||||
FN_GLOBAL_STRING(addport_cmd, addport_cmd)
|
||||
FN_GLOBAL_STRING(addprinter_cmd, addprinter_cmd)
|
||||
FN_GLOBAL_STRING(add_share_cmd, add_share_cmd)
|
||||
FN_GLOBAL_STRING(add_share_command, add_share_command)
|
||||
FN_GLOBAL_STRING(add_user_script, add_user_script)
|
||||
FN_GLOBAL_STRING(add_user_to_group_script, add_user_to_group_script)
|
||||
FN_GLOBAL_STRING(auto_services, auto_services)
|
||||
|
@ -3244,7 +3244,7 @@ static struct parm_struct parm_table[] = {
|
||||
.label = "add share command",
|
||||
.type = P_STRING,
|
||||
.p_class = P_GLOBAL,
|
||||
.offset = GLOBAL_VAR(add_share_cmd),
|
||||
.offset = GLOBAL_VAR(add_share_command),
|
||||
.special = NULL,
|
||||
.enum_list = NULL,
|
||||
.flags = FLAG_ADVANCED,
|
||||
|
@ -1774,7 +1774,7 @@ WERROR _srvsvc_NetShareAdd(struct pipes_struct *p,
|
||||
if (p->session_info->unix_token->uid != sec_initial_uid() && !is_disk_op )
|
||||
return WERR_ACCESS_DENIED;
|
||||
|
||||
if (!lp_add_share_cmd(talloc_tos()) || !*lp_add_share_cmd(talloc_tos())) {
|
||||
if (!lp_add_share_command(talloc_tos()) || !*lp_add_share_command(talloc_tos())) {
|
||||
DEBUG(10,("_srvsvc_NetShareAdd: No add share command\n"));
|
||||
return WERR_ACCESS_DENIED;
|
||||
}
|
||||
@ -1870,7 +1870,7 @@ WERROR _srvsvc_NetShareAdd(struct pipes_struct *p,
|
||||
|
||||
command = talloc_asprintf(ctx,
|
||||
"%s \"%s\" \"%s\" \"%s\" \"%s\" %d",
|
||||
lp_add_share_cmd(talloc_tos()),
|
||||
lp_add_share_command(talloc_tos()),
|
||||
get_dyn_CONFIGFILE(),
|
||||
share_name_in,
|
||||
path,
|
||||
|
Loading…
Reference in New Issue
Block a user