[cups] MakeModel gets erased from printers.conf from time to time

Alex Korobkin korobkin+cups at gmail.com
Thu Dec 18 11:43:18 PST 2014


Excellent, thank you Michael.

2014-12-18 14:30 GMT-05:00 Michael Sweet <msweet at apple.com>:
> Alex,
>
> This was recently fixed in the repository for the 2.0.2 release:
>
> Index: scheduler/printers.c
> ===================================================================
> --- scheduler/printers.c        (revision 12263)
> +++ scheduler/printers.c        (revision 12264)
> @@ -3685,8 +3685,6 @@
>    _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 @@
>
>    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;
>
>
>> On Dec 18, 2014, at 2:14 PM, Alex Korobkin <korobkin+cups at gmail.com> wrote:
>>
>> Hi,
>>
>> When backing up printers.conf and comparing various versions over time
>> I noticed that the MakeModel line sometimes disappear from this file.
>> It gets recreated later, then disappears again.
>>
>> I don't care much about this line, just wondering why would that be
>> and if this is a known issue or expected behaviour.
>>
>> CUPS 1.7.5 on Ubuntu server.
>>
>> --
>> -Alex
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
>
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups



-- 
-Alex



More information about the cups mailing list