diff options
author | Jim McDonough <jmcd@samba.org> | 2010-08-16 14:07:44 -0400 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2010-08-16 14:07:44 -0400 |
commit | efd822982e531d82b4b95624146b90cd3334f78f (patch) | |
tree | c740294854f5ecca71a262f88f207afa03539d46 /source3 | |
parent | dadcc840091c848ccedc3348591d0e19eff75182 (diff) | |
download | samba-efd822982e531d82b4b95624146b90cd3334f78f.tar.gz samba-efd822982e531d82b4b95624146b90cd3334f78f.tar.bz2 samba-efd822982e531d82b4b95624146b90cd3334f78f.zip |
s3-printing: fix BUG 7280 - auto printers not loading with registry
config
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 dd5d4ea277..4f1bb88a99 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) |