From: Jim McDonough Date: Mon, 23 Aug 2010 09:14:47 +0000 (+0200) Subject: s3-printing: fix BUG 7280 - auto printers not loading with registry config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c3537b6d8b2ea36265d3a69f7e90278cb86dbfb;p=thirdparty%2Fsamba.git s3-printing: fix BUG 7280 - auto printers not loading with registry config --- 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 @@ -30,6 +30,10 @@ static void add_auto_printers(void) char *str; char *saveptr; + if (pnum < 0) + if (process_registry_service(PRINTERS_NAME)) + pnum = lp_servicenumber(PRINTERS_NAME); + if (pnum < 0) return;