s3-printing: fix BUG 7280 - auto printers not loading with registry config
authorJim McDonough <jmcd@samba.org>
Mon, 23 Aug 2010 09:14:47 +0000 (11:14 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Aug 2010 09:14:47 +0000 (11:14 +0200)
source3/printing/load.c

index fc21f271bd9aa2aaba391edcbeaf31e76d27cbf1..874f7f25215560a5717905baed1f5810fea4e208 100644 (file)
@@ -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;