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

Re: Perhaps programs should create the subdirectories they use for their temporary files



On Sat, 2009-04-04 at 11:00 +0200, Guus Sliepen wrote:
> The problem is that some programs (apt-get, PolicyKit, etc.) store temporary
> files in /var/run or /var/cache in their own subdirectories, but expect
> something else to create these directories for them. I think we should require
> these programs to create their own subdirectories at runtime. It is very simple
> to add an mkdir() command to these programs. If the directory already exists,
> it is a no-op.
> 
...until such a program needs to run as non-root, and then mkdir() at
runtime doesn't help anything.  /var/run/PolicyKit/ is 770
root:polkituser, probably for this reason.

Cheers,
Julien


Reply to: