git: fd1066bed67f - main - .profile: Don't bother checking for /home symlink

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 12 Feb 2024 14:25:48 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c

commit fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c
Author:     Collin Funk <collin.funk1@gmail.com>
AuthorDate: 2024-02-04 12:04:52 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-02-12 14:24:49 +0000

    .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.
    
    This reverts commit 4cea05a273c875b5d5d4c41bfa6f2f0a60fa4a66.
    
    Signed-off-by: Collin Funk <collin.funk1@gmail.com>
    Pull-request: https://github.com/freebsd/freebsd-src/pull/1102
---
 share/skel/dot.profile | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/share/skel/dot.profile b/share/skel/dot.profile
index 40dfa58f4e84..7b9aa96c834a 100644
--- a/share/skel/dot.profile
+++ b/share/skel/dot.profile
@@ -19,9 +19,6 @@ PAGER=less;  	export PAGER
 # 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
-
 # Query terminal size; useful for serial lines.
 if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi