Etc/cups/printers.conf File 4,2/5 6530votes

Anyone have an idea how to push out CUPS Printers to Tiger clients using ARD 3? Download Game Tenis Meja 3d 2014 Mod Apk. I have been trying to send out the printers.conf file located in /etc/cups to a few Macs, but after the CUPS file copies to its destination, print jobs error out with a generic 'a printing error has occurred' message. The printers.conf file defines the local printers that are available. It is normally located in the /etc/cups directory and is generated automatically by the cupsd(8) program when printers are added or deleted. Each line in the file can be a configuration directive, a blank line, or a comment.

View Issue Details [ ] [ ] [ ] ID Project Category View Status Date Submitted Last Update 0007045 CentOS-6 cups public 2014-03-26 -03-26 09:32 Reporter berend Priority normal Severity minor Reproducibility always Status new Resolution open Product Version 6.5 Target Version Fixed in Version Summary 0007045: Cups can end with a zero-byte printers.conf file. Description Cups can end up with a zero-byte printers.conf, or a zero byte classes.conf.

Etc/cups/printers.conf File

Cups should end up with either the old file or the new file. Steps To Reproduce 1. Edit cups (lpadmin -p PRINTER.) 2. Wait +- 30 seconds (cups caches writes) 3. Pull the power cord before +- 90 seconds Additional Information There are two bugs: - cups doesn't write to a temporary config file, but straight to printers.conf - cups doesn't fsync(), as required for Posix (remember Ted Ts'o blog at: ) Both bugs are fixed in Cups upstream (version 1.6.4 and 1.7.0) I've attached a patch to fix it. I tried to keep cups behaviour of keeping a backup file in printers.conf.O. This is now a backup, not a rename(), to prevent having to run fsync(opendir('/etc/cups')) in addition to fsync('/etc/cups/printers.conf.N').

I don't want to depend on two separate fsync() calls, because that would break atomicity. I moved writes to a temporary file printers.conf.N (like cups 1.6.4) and rename() at the end. Foxmail 7 Italiano Download Skype.

I added fsync() as described. Tags No tags attached.

Etc/cups/printers.conf File

Attached Files •.