/tmp -> / ? Is that supposed to be there?



  • Hi, I am sure this is a dumb question but if I don't ask I'll never know.

    On my 1.2.1, I have this is /tmp:

    lrwxr-xr-x  1 root  wheel       1 Dec 30 19:56 tmp -> /

    Why does that link to the root?  Is that normal?  I removed it to see what happened and it came back on it's own.

    edit: I think I had to reboot to get it back.  Not going to try that right now but I think that was what happened.



  • code that creates that says:

    # Setup compatibility link for packages that
    # have trouble overriding the PREFIX configure
    # argument since we build our packages in a
    # seperated PREFIX area
    # Only create if symlink does not exist.
    if [ ! -h /tmp/tmp ]; then
    ln -hfs / /tmp/tmp
    
    


  • So that would be a 'yes'.

    It just looked odd to me, just wanted to make sure it wasn't something weird.


Locked