diff mbox series

[1/2] base-files: Make PATH retain the existing value

Message ID 20250421061157.3912745-1-mingli.yu@eng.windriver.com
State New
Headers show
Series [1/2] base-files: Make PATH retain the existing value | expand

Commit Message

mingli.yu@eng.windriver.com April 21, 2025, 6:11 a.m. UTC
From: Mingli Yu <mingli.yu@windriver.com>

We may set the PATH variable such as in /etc/environment for ssh session,
so make PATH retain the previous existing value to fix the gap.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-core/base-files/base-files/profile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index 5e8393c91c..375be64891 100644
--- a/meta/recipes-core/base-files/base-files/profile
+++ b/meta/recipes-core/base-files/base-files/profile
@@ -1,7 +1,7 @@ 
 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
 # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
 
-PATH="/usr/local/bin:/usr/bin:/bin"
+PATH="$PATH:/usr/local/bin:/usr/bin:/bin"
 [ "$TERM" ] || TERM="vt100"	# Basic terminal capab. For screen etc.
 
 # Add /sbin & co to $PATH for the root user