diff options
author | Jim McDonough <jmcd@samba.org> | 2010-08-23 11:14:47 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-01-13 17:58:51 +0100 |
commit | 8863dce17e0e107efaa1bd8fe8edbd44b88faad5 (patch) | |
tree | 09b8379c2eaee549c553667f3c49254435455683 /source3 | |
parent | bd20f12ae607751e7c0ceed197c8a290876a5d93 (diff) | |
download | samba-8863dce17e0e107efaa1bd8fe8edbd44b88faad5.tar.gz |
s3-printing: fix BUG 7280 - auto printers not loading with registry config
(cherry picked from commit 9c3537b6d8b2ea36265d3a69f7e90278cb86dbfb)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/load.c | 4 |
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) |