aboutsummaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-04 19:58:14 -0400
committerTom Gundersen <teg@jklm.no>2011-06-05 02:25:32 +0200
commit71ef9c40189ff87d84c7bf354fb43038997913d1 (patch)
treedaaae1c2b39ed6df222ed20c7861ef010cbf30b1 /rc.d
parentc6adbe7a36a7330debfaa07d4351bcd80d479214 (diff)
downloadinitscripts-71ef9c40189ff87d84c7bf354fb43038997913d1.tar.xz
remove absolute paths from daemons and rc.d
These are run from a context where PATH will be set, so defining absolute paths is unnecessary.
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d b/rc.d
index f0c5204..ad0a1e9 100755
--- a/rc.d
+++ b/rc.d
@@ -56,7 +56,7 @@ case $1 in
cd /
for i; do
if [[ -x "/etc/rc.d/$i" ]]; then
- /usr/bin/env -i "${ENV[@]}" "/etc/rc.d/$i" "$action"
+ env -i "${ENV[@]}" "/etc/rc.d/$i" "$action"
else
printf "${C_OTHER}:: ${C_FAIL}Error: ${C_DONE}Daemon script $i does not exist.\n"
fi