[oe-commits] Denys Dmytriyenko : /etc/profile: stricter root PATH - require absolute pathname for bins in cwd
git version control
git at git.openembedded.org
Mon Jun 22 19:16:10 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: adb9174a2feaf3718b72256adc35580313f328c7
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=adb9174a2feaf3718b72256adc35580313f328c7
Author: Denys Dmytriyenko <denis at denix.org>
Date: Mon Jun 22 07:44:45 2009 +0000
/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 at denix.org>
Acked-by: Phil Blundell <philb at gnu.org>
Acked-by: Koen Kooi <koen at openembedded.org>
---
recipes/base-files/base-files/profile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/recipes/base-files/base-files/profile b/recipes/base-files/base-files/profile
index 5797535..b5ce69d 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)
More information about the Openembedded-commits
mailing list