[oe-commits] Denys Dmytriyenko : /etc/profile: stricter root PATH - require absolute pathname for bins in cwd
git version control
git at git.openembedded.org
Tue Jun 30 19:12:03 UTC 2009
Module: openembedded.git
Branch: stable/2009
Commit: 1ad4b80ab4b93ed133ee096f59092d1cee0eb2b6
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1ad4b80ab4b93ed133ee096f59092d1cee0eb2b6
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