summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-11-04 17:19:58 +0100
committerStefan Metzmacher <metze@samba.org>2019-11-27 10:25:34 +0000
commit4b1de86de2b84afda280b862d4d6e7234ebb3de8 (patch)
tree0e439cb045c03f9fa9ac06db69d93d9d7ce660a6 /source3/printing
parentfb434275164c21494bbb8be7d0f36c7289b20ce0 (diff)
downloadsamba-4b1de86de2b84afda280b862d4d6e7234ebb3de8.tar.gz
smbdotconf: mark "cups server" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/print_cups.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 53e6dd05dfb..6ad85498be3 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -108,14 +108,16 @@ cups_passwd_cb(const char *prompt) /* I - Prompt */
static http_t *cups_connect(TALLOC_CTX *frame)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
http_t *http = NULL;
char *server = NULL, *p = NULL;
int port;
int timeout = lp_cups_connection_timeout();
size_t size;
- if (lp_cups_server(talloc_tos()) != NULL && strlen(lp_cups_server(talloc_tos())) > 0) {
- if (!push_utf8_talloc(frame, &server, lp_cups_server(talloc_tos()), &size)) {
+ if (lp_cups_server(talloc_tos(), lp_sub) != NULL && strlen(lp_cups_server(talloc_tos(), lp_sub)) > 0) {
+ if (!push_utf8_talloc(frame, &server, lp_cups_server(talloc_tos(), lp_sub), &size)) {
return NULL;
}
} else {