]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
base-files: Make PATH retain the existing value
authorMingli Yu <mingli.yu@windriver.com>
Mon, 21 Apr 2025 06:11:56 +0000 (14:11 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Apr 2025 10:47:18 +0000 (11:47 +0100)
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/base-files/base-files/profile

index 5e8393c91c6b4d1e4280f453d3d4b11e58115679..375be648910e4a04179edfbee7739de03cdf5108 100644 (file)
@@ -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