summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2010-08-23 11:14:47 +0200
committerKarolin Seeger <kseeger@samba.org>2011-01-13 17:58:51 +0100
commit8863dce17e0e107efaa1bd8fe8edbd44b88faad5 (patch)
tree09b8379c2eaee549c553667f3c49254435455683
parentbd20f12ae607751e7c0ceed197c8a290876a5d93 (diff)
downloadsamba-8863dce17e0e107efaa1bd8fe8edbd44b88faad5.tar.gz
s3-printing: fix BUG 7280 - auto printers not loading with registry config
(cherry picked from commit 9c3537b6d8b2ea36265d3a69f7e90278cb86dbfb)
-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 fc21f271bd9..874f7f25215 100644
--- a/source3/printing/load.c
+++ b/source3/printing/load.c
@@ -31,6 +31,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)