cancel
Showing results for 
Search instead for 
Did you mean: 

looped symlink

SOLVED
Go to solution
Bengt Nilsson_2
Regular Advisor

looped symlink

My system is a tru64-5.1B-4.

A software I just installed wants the path to a work directory to be /usr/users/ms0//work.
Since I don't have this, I am tempted to make a symlink

ln -s /usr/users /usr/users/ms0

to make it work.

Will this be outright dangerous, apart form being just ugly?

I have a feeling there may be a risk for an infinite loop is some function will scan the directory tree.

BN
2 REPLIES
Martin Moore
HPE Pro
Solution

Re: looped symlink

Ugly as it is, it should work. Because /usr/users/ms0 is a symlink pointing back to /usr/users, then /usr/users/ms0//work will point to /usr/users//work, and as long as this exists, it should work fine. There is no recursion involved (provided there is no username ms0; that could cause problems.)

Trying the symlink the other way around could cause some rather odd behavior. :)

Martin
I work for HP
A quick resolution to technical issues for your HP Enterprise products is just a click away HP Support Center Knowledge-base
See Self Help Post for more details

Bengt Nilsson_2
Regular Advisor

Re: looped symlink

Thanks!