1753260 Members
4613 Online
108792 Solutions
New Discussion юеВ

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 2
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 HPE
A quick resolution to technical issues for your HPE products is just a click away HPE Support Center
See Self Help Post for more details

Accept or Kudo

Bengt Nilsson_2
Regular Advisor

Re: looped symlink

Thanks!