From: Denys Dmytriyenko Date: Mon, 22 Jun 2009 07:44:45 +0000 (+0000) Subject: /etc/profile: stricter root PATH - require absolute pathname for bins in cwd X-Git-Tag: Release-2010-05/1~3087^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adb9174a2feaf3718b72256adc35580313f328c7;p=openembedded.git /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 Acked-by: Phil Blundell Acked-by: Koen Kooi --- 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)