Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2024 03:23:13 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Ed Maste <emaste@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: fd1066bed67f - main - .profile: Don't bother checking for /home symlink
Message-ID:  <ZcrgoBXaJty2lwqx@FreeBSD.org>
In-Reply-To: <202402121425.41CEPmxI075183@gitrepo.freebsd.org>
References:  <202402121425.41CEPmxI075183@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 12, 2024 at 02:25:48PM +0000, Ed Maste wrote:
> commit fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c
> 
>   .profile: Don't bother checking for /home symlink
> 
>   Since FreeBSD 14.0, user directories are created directly under /home.
>   This check should no longer be needed.
> 
> @@ -19,9 +19,6 @@
>  # set ENV to a file invoked each time sh is started for interactive use.
>  ENV=$HOME/.shrc; export ENV
>  
> -# Let sh(1) know it's at home, despite /home being a symlink.
> -if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
> -

The installer creates separate /home, individual hackers might want to
partition their drives the old way as / (root) + /usr (everything else),
so this check is probably still useful.

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZcrgoBXaJty2lwqx>