On Wed, Sep 04, 2002 at 01:02:33PM +1000, Martijn van Oosterhout wrote:
> I think the key word is "files". As you say it doesn't talk about about
> directories, for good reason since it's an awful lot of work. you'd have to
> replace:

I think that FHS would transmit the content that "stuff" in /var/cache
can be deleted by the system administrator, even if is written only
"files".

>   Look for cache file
>   If not, go the long way
> 
> with:
> 
>   Look for cache file
>   If not, check for parent directory
>     If not there, try to create it
>       If fails, check for parent directory
>         etc...
> 
> Ofcourse, it could just do system("mkdir -p /var/cache/whatever/dir/it/is")
> everytime it wants to open a file but that would be inefficient.

No, you can try to check if there is the file, and if this is not the
case do the "mkdir -p" command. In this case the inefficiency is only
after a manual deletion by the sysadm, IMO this is an acceptable
behaviour.

IMO we should fill bugs (perhaps 'whishlist' until we clarify the FHS
intended approach) and fix the affected apps.

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
[EMAIL PROTECTED] | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney

Attachment: pgp3mzcrqqJ1a.pgp
Description: PGP signature

Reply via email to