]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The scheduler incorrectly cleared the MakeModel string in the printers.conf file
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 19 Nov 2014 16:02:27 +0000 (16:02 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 19 Nov 2014 16:02:27 +0000 (16:02 +0000)
after a restart (<rdar://problem/16827518>)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12264 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-2.0.txt
scheduler/printers.c

index da44da732c42d86b9b474832b8335fd015148ca9..3099a990ea161583e13cb3b28862362f2c43bbc3 100644 (file)
@@ -5,6 +5,8 @@ CHANGES IN CUPS V2.0.2
 
        - Command-line programs were not localized on Mac OS X
          (<rdar://problem/14546232>)
+       - The scheduler incorrectly cleared the MakeModel string in the
+         printers.conf file after a restart (<rdar://problem/16827518>)
 
 
 CHANGES IN CUPS V2.0.1
index 8fad02df83a25ded9788b79086ade74e37cd503c..eea3633a614bdfbf99c769527bd30a09f359f895 100644 (file)
@@ -3685,8 +3685,6 @@ load_ppd(cupsd_printer_t *p)              /* I - Printer */
   _ppdCacheDestroy(p->pc);
   p->pc = NULL;
 
-  cupsdClearString(&(p->make_model));
-
   if (cache_info.st_mtime >= ppd_info.st_mtime)
   {
     cupsdLogMessage(CUPSD_LOG_DEBUG, "load_ppd: Loading %s...", cache_name);
@@ -3710,6 +3708,8 @@ load_ppd(cupsd_printer_t *p)              /* I - Printer */
 
   cupsdLogMessage(CUPSD_LOG_DEBUG, "load_ppd: Loading %s...", ppd_name);
 
+  cupsdClearString(&(p->make_model));
+
   p->type &= (cups_ptype_t)~CUPS_PRINTER_OPTIONS;
   p->type |= CUPS_PRINTER_BW;