Browse Source

sysfiles: changed /etc/profile to give root's PATH to root even when / is read-only

user/chris/old/ruby
Alejandro Mery 15 years ago
parent
commit
292e19ee54
  1. 4
      base/sysfiles/etc_profile.txt

4
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

Loading…
Cancel
Save