From 8f935033f2d679331d6f9a86f7f0474964ac28b1 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Mon, 23 Aug 2010 11:13:06 +0200 Subject: [PATCH] s3-printing: fix BUG 7280 - auto printers not loading with registry config (cherry picked from commit bb92b0e1571e4766ab20bb3eea53f9e7f9567a5f) --- source3/printing/load.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.11.4.GIT