1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

smbdotconf: mark "deleteprinter command" with substitution="1"

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2019-11-04 17:26:29 +01:00 committed by Stefan Metzmacher
parent b1c27e7246
commit d035f850de
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<samba:parameter name="deleteprinter command"
context="G"
type="string"
substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>With the introduction of MS-RPC based printer

View File

@ -346,7 +346,9 @@ static WERROR delete_printer_hook(TALLOC_CTX *ctx, struct security_token *token,
const char *sharename,
struct messaging_context *msg_ctx)
{
char *cmd = lp_deleteprinter_command(talloc_tos());
const struct loadparm_substitution *lp_sub =
loadparm_s3_global_substitution();
char *cmd = lp_deleteprinter_command(talloc_tos(), lp_sub);
char *command = NULL;
int ret;
bool is_print_op = false;