summaryrefslogtreecommitdiff
path: root/file.pl.in
diff options
context:
space:
mode:
authorunammx <unammx>2001-07-16 08:03:05 +0000
committerunammx <unammx>2001-07-16 08:03:05 +0000
commit0b5f5c4be3a0f3bc272ab6ba927929e5f9f3ab5d (patch)
treed931cfd17914789c3a20fef1814f01f8b27f90b8 /file.pl.in
parentc316c80feb3131fdbc52ea67c794cc4baf60c8a4 (diff)
Sat Jul 14 11:54:50 2001 Arturo Espinosa Aldama <arturo@ximian.com>
* file.pl.in (xst_file_run): Added PATH=$PATH:/sbin:/usr/sbin to the running command, as these important routes may not be set by the mortal user, and the executed scripts may fail (ie debian's ifup/ifdown fail when tool run by normal user). * network-conf.in (enable_iface): A directive handler that ifup/ifdowns a given interface. $directives: added directive entry, params and description.
Diffstat (limited to 'file.pl.in')
-rw-r--r--file.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.pl.in b/file.pl.in
index ad7fe6d..bd159a9 100644
--- a/file.pl.in
+++ b/file.pl.in
@@ -480,7 +480,7 @@ sub xst_file_run
&xst_report_leave ();
# As documented in perlfunc, divide by 256.
- return (system ("$command > /dev/null 2> /dev/null") / 256);
+ return (system ("PATH=$PATH:/sbin:/usr/sbin $command > /dev/null 2> /dev/null") / 256);
}