git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2efbc18
)
/etc/profile: stricter root PATH - require absolute pathname for bins in cwd
author
Denys Dmytriyenko
<denis@denix.org>
Mon, 22 Jun 2009 07:44:45 +0000
(07:44 +0000)
committer
Denys Dmytriyenko
<denis@denix.org>
Mon, 22 Jun 2009 19:15:26 +0000
(15:15 -0400)
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>
recipes/base-files/base-files/profile
patch
|
blob
|
history
diff --git
a/recipes/base-files/base-files/profile
b/recipes/base-files/base-files/profile
index
5797535
..
b5ce69d
100644
(file)
--- 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)