From: Ralph Boehme Date: Mon, 4 Nov 2019 16:42:38 +0000 (+0100) Subject: smbdotconf: mark "enumports command" with substitution="1" X-Git-Tag: ldb-2.1.0~548 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e678cba77dac7bab2866bbfe393d624643fce1a;p=thirdparty%2Fsamba.git smbdotconf: mark "enumports command" with substitution="1" Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/docs-xml/smbdotconf/printing/enumportscommand.xml b/docs-xml/smbdotconf/printing/enumportscommand.xml index cb85cd0bcc8..12580420d72 100644 --- a/docs-xml/smbdotconf/printing/enumportscommand.xml +++ b/docs-xml/smbdotconf/printing/enumportscommand.xml @@ -1,6 +1,7 @@ The concept of a "port" is fairly foreign diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 631091a5ce0..33eaca5dea5 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -8190,7 +8190,9 @@ static WERROR fill_port_2(TALLOC_CTX *mem_ctx, static WERROR enumports_hook(TALLOC_CTX *ctx, int *count, char ***lines) { - char *cmd = lp_enumports_command(talloc_tos()); + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); + char *cmd = lp_enumports_command(talloc_tos(), lp_sub); char **qlines = NULL; char *command = NULL; int numlines;