[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#317905: cupsys: move ppds.dat if you want write in it


At Tue, 12 Jul 2005 12:35:52 +0200,
Jörg Sommer wrote:
> as you know, there is a project to make Debian supporting a readonly root
> directory, i.e. no process should write in /etc expect at configuration.
> But as I saw in the logs cups try to write there:
> cupsd[746]: LoadPPDs: Read "/etc/cups/ppds.dat", 67 PPDs...
> cupsd[746]: LoadPPDs: Wrote "/etc/cups/ppds.dat", 67 PPDs...
> On a readonly root this fails:
> cupsd[484]: LoadPPDs: Read "/etc/cups/ppds.dat", 67 PPDs...
> cupsd[484]: LoadPPDs: Unable to write "/etc/cups/ppds.dat" - Read-only file system

As I can see from the code, first read is to read current gathered printer
archive file ppds.dat. Then when CUPS find new printer information, cupsd
opens archive file and writes new one.

I'm considering move ppds.dat to /var/lib/cups.

Kenshi Muto

Reply to: