aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/base-files/base-files
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-06-22 07:44:45 +0000
committerDenys Dmytriyenko <denis@denix.org>2009-06-22 15:15:26 -0400
commitadb9174a2feaf3718b72256adc35580313f328c7 (patch)
treec59466a5a06042a9034deeb6094c2b89ba8140a8 /recipes/base-files/base-files
parent2efbc18b22bf2d338a78e061061c1c93a1fd3f85 (diff)
downloadopenembedded-adb9174a2feaf3718b72256adc35580313f328c7.tar.gz
/etc/profile: stricter root PATH - require absolute pathname for bins in cwd
Having current directory (either '.' or empty string) in PATH is considered dangerous for root. Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Phil Blundell <philb@gnu.org> Acked-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'recipes/base-files/base-files')
-rw-r--r--recipes/base-files/base-files/profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/base-files/base-files/profile b/recipes/base-files/base-files/profile
index 5797535093..b5ce69d9e6 100644
--- a/recipes/base-files/base-files/profile
+++ b/recipes/base-files/base-files/profile
@@ -12,7 +12,7 @@ if [ ! -e /etc/localtime ]; then
fi
if [ "`id -u`" -eq 0 ]; then
- PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:
+ PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
fi
if [ "$PS1" ]; then
# works for bash and ash (no other shells known to be in use here)