From 5e8d600bc6cc12019d986f54d1dd7483a940dacd Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 4 Nov 2019 15:11:04 +0100 Subject: smbdotconf: mark "auto services" with substitution="1" Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- source3/printing/load.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/printing') diff --git a/source3/printing/load.c b/source3/printing/load.c index 7e25d5a91c7..6a5d4ed97c2 100644 --- a/source3/printing/load.c +++ b/source3/printing/load.c @@ -27,6 +27,8 @@ auto-load some homes and printer services ***************************************************************************/ static void add_auto_printers(void) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); const char *p; int pnum = lp_servicenumber(PRINTERS_NAME); char *str; @@ -40,7 +42,7 @@ static void add_auto_printers(void) if (pnum < 0) return; - auto_serv = lp_auto_services(talloc_tos()); + auto_serv = lp_auto_services(talloc_tos(), lp_sub); str = SMB_STRDUP(auto_serv); TALLOC_FREE(auto_serv); if (str == NULL) { -- cgit v1.2.1