Dynamic symlink?

Brian Candler B.Candler at pobox.com
Mon Oct 10 12:06:04 PDT 2005


On Mon, Oct 10, 2005 at 01:39:58PM -0500, Dan Nelson wrote:
> > Something which looks like a symlink with a dynamic target depending
> > on the uid of the person who reads it is the sort of thing I'm
> > looking for.
> 
> You could probably use amd's hlfsd to do this

That's exactly what I was looking for, thank you.

> , or make sure that
> $TMPDIR is set correctly before launching the script, and force
> everyone to use $TMPDIR instead of hardcoding /tmp in their scripts.

Unfortunately, forcing people to be sensible in the design of their scripts
is not an option. Also, I'm not sure that in PHP I can do
    session.save_path = $ENV['TMPDIR'];

Cheers,

Brian.


More information about the freebsd-questions mailing list