From: Stefan Metzmacher Date: Tue, 15 Oct 2019 14:54:45 +0000 (+0200) Subject: smbdotconf: mark "cups options" with substitution="1" X-Git-Tag: ldb-2.1.0~585 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e918fad6e974b06a43357ba08ea5ef7ecd7f3b5;p=thirdparty%2Fsamba.git smbdotconf: mark "cups options" with substitution="1" Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/docs-xml/smbdotconf/printing/cupsoptions.xml b/docs-xml/smbdotconf/printing/cupsoptions.xml index 7e6b07db9f5..833ba30a0d3 100644 --- a/docs-xml/smbdotconf/printing/cupsoptions.xml +++ b/docs-xml/smbdotconf/printing/cupsoptions.xml @@ -1,6 +1,7 @@ diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index c4704cc5831..c0265186fff 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -953,6 +953,8 @@ static int cups_job_submit(int snum, struct printjob *pjob, char *lpq_cmd) { TALLOC_CTX *frame = talloc_stackframe(); + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); int ret = 1; /* Return value */ http_t *http = NULL; /* HTTP connection to server */ ipp_t *request = NULL, /* IPP Request */ @@ -1060,7 +1062,7 @@ static int cups_job_submit(int snum, struct printjob *pjob, */ if (!push_utf8_talloc(frame, &cupsoptions, - lp_cups_options(talloc_tos(), snum), &size)) { + lp_cups_options(talloc_tos(), lp_sub, snum), &size)) { goto out; } num_options = 0;