]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dot.profile: handle symlinked $HOME
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Wed, 9 Jan 2019 11:04:27 +0000 (11:04 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 13 Feb 2024 18:24:22 +0000 (13:24 -0500)
commitb4b61ead7eabb7b6f3a6de67f7594b17c3a20660
tree08c19220dece2e33d1b771cfc0e333f2277fbf6d
parent9cc816c255df15ebd43e6ab3c29e0af59b741e85
dot.profile: handle symlinked $HOME

Reapply 4cea05a273c875b5d5d4c41bfa6f2f0a60fa4a66:

    Make sh(1) recognize the default $HOME.  By default /home
    is a symlink; without this change, when you log in, sh(1)
    won't realize the current directory (eg '/usr/home/test')
    is the same as $HOME ('/home/test').

/home is no longer a symlink by default, but new users may be added on
systems that started out with an earlier version of FreeBSD (and still
have /home as a symlink) or admins may do so.

This test is not particularly expensive, so just restore it.

Suggested by: danfe, brooks
share/skel/dot.profile