From 292e19ee54710a5f3db6552913809067f5cbedee Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 20 Oct 2009 18:48:31 +0300 Subject: [PATCH] sysfiles: changed /etc/profile to give root's PATH to root even when / is read-only --- base/sysfiles/etc_profile.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/sysfiles/etc_profile.txt b/base/sysfiles/etc_profile.txt index d6174824e..aa2ed54c2 100644 --- a/base/sysfiles/etc_profile.txt +++ b/base/sysfiles/etc_profile.txt @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../sysfiles/etc_profile.txt -# Copyright (C) 2006 The OpenSDE Project +# Copyright (C) 2006 - 2009 The OpenSDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # # More information can be found in the files COPYING and README. @@ -15,7 +15,7 @@ # set the PATH-variable -if [ -w / ] ; then +if [ -w / -o "$USER" = "root" -o "$UID" = 0 ] ; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" for x in /usr/X11/bin /usr/X11/sbin /usr/games /usr/local/games \ /opt/*/bin /opt/*/sbin /opt/*/games $HOME/bin $HOME/sbin