Yet another reason why the only sensible thing for a per-user cache is to use ~/.cache: it is automatically safe with respect to whichever policy is defined by the administrator and/or user for access rights, disk quotas, etc, with no race condition to check for. The only possible downside is having to walk /etc/passwd to locate all the places where to purge the cache, if you wish to do such thing.
> ii realpath 1.9.20 Return the canonicalized PS: Oh, instead of using realpath, could we be using readlink -f ? It's part of the GNU coreutils, so that's one less bizarre package to depend upon. [ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] If six billion people have both more food and more forest than their three billion parents did; if the prices of copper, wheat and natural gas are going down, not up; if there are 20 times more carcinogens in three cups of organic coffee than in daily dietary exposure to the worst pesticide both before and after the DDT ban; if renewable resources such as whales are more easily exhausted than non-renewables such as coal; if lower infant mortality leads to falling populations, not rising ones, then perhaps we need to think differently about what sustainability means. Perhaps the most sustainable thing we can do is develop new technology, increase trade and spread affluence. -- Matt Ridley