Bug 132152 - CUPS doesn't write the last printer's "Info" line from "/etc/cups/printers.conf" to "/etc/printcap"
Summary: CUPS doesn't write the last printer's "Info" line from "/etc/cups/printers.co...
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Printing (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Klaus Singvogel
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-03 15:59 UTC by Steffen Moser
Modified: 2005-11-23 13:51 UTC (History)
0 users

See Also:
Found By: Beta-Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
"/etc/cups/printers.conf" from SuSE-10.0-final machine (1.25 KB, text/plain)
2005-11-03 16:00 UTC, Steffen Moser
Details
"/etc/printcap" from SuSE-10.0-final machine (541 bytes, text/plain)
2005-11-03 16:03 UTC, Steffen Moser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Moser 2005-11-03 15:59:24 UTC
I suppose I've just come across a little bug in CUPS that seems to be present in SuSE-Linux-10.0-final and in SuSE-Linux-10.1-alpha2: The "Info" line of the last printer that is declared within the file "/etc/cups/printers.conf" is not written to "/etc/printcap".

In other words: If I have, for example, five printers declared in "/etc/cups/printers.conf" (it doesn't matter if the printers are created by YaST2 or by the CUPS webbased management tool), only the "Info" lines of the first four printers will be written correctly to "/etc/printcap". The "Info" line of the fifth printer seems to be ignored. Instead of this information the name of the fifth printer is repeated in "/etc/printcap". 

Therefore, e.g. Samba doesn't propagate this informational text about the fifth printer to the Windows clients (because Samba normally just fetches that information from "/etc/printcap").

I've seen the bug at first on SuSE-10.0-final. You'll find my "/etc/cups/printers.conf" and the "/etc/printcap" that was created automatically by CUPS (after restarting CUPS) based on the printers defined in "/etc/cups/printers.conf" as an attachment.

I could reproduce it after then using SuSE-10.1-alpha2 on a test machine.
Comment 1 Steffen Moser 2005-11-03 16:00:40 UTC
Created attachment 56397 [details]
"/etc/cups/printers.conf" from SuSE-10.0-final machine
Comment 2 Steffen Moser 2005-11-03 16:03:48 UTC
Created attachment 56398 [details]
"/etc/printcap" from SuSE-10.0-final machine
Comment 3 Johannes Meixner 2005-11-03 16:11:05 UTC
You are right.
I can reproduce it.
Comment 4 Klaus Singvogel 2005-11-23 13:51:45 UTC
Fixed in next version.

The problem was that: cupsd writes printcap file, before he gathered full information about a printer. So its always the last entry of printcap file, which is wrong. Yes the file is written every time a new printer is discovered in printers.conf, and by writing one, the previous printers have full information. :-)