summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-28 09:41:47 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-28 09:42:23 +0000
commit6955830f96ee6f3912a89e271eb59e501dfe3514 (patch)
treef1f6cbf3f4e76be76594a04ee0f90a937f49282d /etc/inc/services.inc
parent39618326e0ddd3d79f2596b6a11d9bc09da6ded0 (diff)
downloadpfsense-6955830f96ee6f3912a89e271eb59e501dfe3514.zip
pfsense-6955830f96ee6f3912a89e271eb59e501dfe3514.tar.gz
Replace some occurrence of /tmp with the propper global variable in attempt to minimize the search for what changes /tmp permissions.
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r--etc/inc/services.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 2e54a2a..91f03b1 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -74,7 +74,7 @@ function services_dhcpd_configure() {
$is_olsr_enabled = true;
/* configure DHCPD chroot */
- $fd = fopen("/tmp/dhcpd.sh","w");
+ $fd = fopen("{$g['tmp_path']}/dhcpd.sh","w");
$status = `mount | grep "{$g['dhcpd_chroot_path']}/dev"`;
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/dev\n");
@@ -92,7 +92,7 @@ function services_dhcpd_configure() {
if(!trim($status))
fwrite($fd, "mount -t devfs devfs {$g['dhcpd_chroot_path']}/dev\n");
fclose($fd);
- mwexec("/bin/sh /tmp/dhcpd.sh");
+ mwexec("/bin/sh {$g['tmp_path']}/dhcpd.sh");
$syscfg = $config['system'];
$dhcpdcfg = $config['dhcpd'];
OpenPOWER on IntegriCloud