]> git.openpandora.org Git - openembedded.git/commitdiff
/etc/profile: stricter root PATH - require absolute pathname for bins in cwd
authorDenys Dmytriyenko <denis@denix.org>
Mon, 22 Jun 2009 07:44:45 +0000 (07:44 +0000)
committerDenys 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

index 579753509330b45f5e9b289ad043c5c746a786a0..b5ce69d9e6d10da7623a43785ca874ea522255cc 100644 (file)
@@ -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)