diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-04 15:11:04 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:34 +0000 |
commit | 5e8d600bc6cc12019d986f54d1dd7483a940dacd (patch) | |
tree | d3ab1e5e42add183366953fecff128b9aed6a2c6 /source3/printing | |
parent | 8445454008a65581c3cf684a902072324894ea67 (diff) | |
download | samba-5e8d600bc6cc12019d986f54d1dd7483a940dacd.tar.gz |
smbdotconf: mark "auto services" 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/load.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |