1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

param: rename lp function and variable from "addprinter_cmd" to "addprinter_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:
Garming Sam
2014-02-04 15:09:05 +13:00
committed by Jeremy Allison
parent 35dd3a7499
commit f8e7ea278d
3 changed files with 5 additions and 5 deletions

View File

@ -370,7 +370,7 @@ FN_GLOBAL_STRING(abort_shutdown_script, abort_shutdown_script)
FN_GLOBAL_STRING(add_group_script, add_group_script)
FN_GLOBAL_STRING(add_machine_script, add_machine_script)
FN_GLOBAL_STRING(addport_command, addport_command)
FN_GLOBAL_STRING(addprinter_cmd, addprinter_cmd)
FN_GLOBAL_STRING(addprinter_command, addprinter_command)
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)

View File

@ -2257,7 +2257,7 @@ static struct parm_struct parm_table[] = {
.label = "addprinter command",
.type = P_STRING,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(addprinter_cmd),
.offset = GLOBAL_VAR(addprinter_command),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED,

View File

@ -6240,7 +6240,7 @@ static bool add_printer_hook(TALLOC_CTX *ctx, struct security_token *token,
const char *remote_machine,
struct messaging_context *msg_ctx)
{
char *cmd = lp_addprinter_cmd(talloc_tos());
char *cmd = lp_addprinter_command(talloc_tos());
char **qlines;
char *command = NULL;
int numlines;
@ -6795,7 +6795,7 @@ static WERROR update_printer(struct pipes_struct *p,
/* Call addprinter hook */
/* Check changes to see if this is really needed */
if (*lp_addprinter_cmd(talloc_tos()) &&
if (*lp_addprinter_command(talloc_tos()) &&
(!strequal(printer->drivername, old_printer->drivername) ||
!strequal(printer->comment, old_printer->comment) ||
!strequal(printer->portname, old_printer->portname) ||
@ -8133,7 +8133,7 @@ static WERROR spoolss_addprinterex_level_2(struct pipes_struct *p,
/* FIXME!!! smbd should check to see if the driver is installed before
trying to add a printer like this --jerry */
if (*lp_addprinter_cmd(talloc_tos()) ) {
if (*lp_addprinter_command(talloc_tos()) ) {
char *raddr;
raddr = tsocket_address_inet_addr_string(p->remote_address,