From adb9174a2feaf3718b72256adc35580313f328c7 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Mon, 22 Jun 2009 07:44:45 +0000 Subject: /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 --- recipes/base-files/base-files/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes') 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) -- cgit 1.2.3-korg