summaryrefslogtreecommitdiffstats
path: root/source3/printing
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2010-08-16 14:07:44 -0400
committerJim McDonough <jmcd@samba.org>2010-08-16 14:07:44 -0400
commitefd822982e531d82b4b95624146b90cd3334f78f (patch)
treec740294854f5ecca71a262f88f207afa03539d46 /source3/printing
parentdadcc840091c848ccedc3348591d0e19eff75182 (diff)
downloadsamba-efd822982e531d82b4b95624146b90cd3334f78f.tar.gz
samba-efd822982e531d82b4b95624146b90cd3334f78f.tar.xz
samba-efd822982e531d82b4b95624146b90cd3334f78f.zip
s3-printing: fix BUG 7280 - auto printers not loading with registry
config
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/load.c b/source3/printing/load.c
index dd5d4ea2770..4f1bb88a996 100644
--- a/source3/printing/load.c
+++ b/source3/printing/load.c
@@ -32,6 +32,10 @@ static void add_auto_printers(void)
char *saveptr;
if (pnum < 0)
+ if (process_registry_service(PRINTERS_NAME))
+ pnum = lp_servicenumber(PRINTERS_NAME);
+
+ if (pnum < 0)
return;
if ((str = SMB_STRDUP(lp_auto_services())) == NULL)