summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-06-06 08:26:26 -0400
committerjim-p <jimp@pfsense.org>2014-06-06 08:26:26 -0400
commitcbf16c3020be196a8d3798761bda0b545a6bca3d (patch)
tree40dea7e8d10d1f80b9eecd7114bbcd2365c764db /etc
parent3bbc23b80d5fe004c8eea6cf86987bd7330cfca4 (diff)
downloadpfsense-cbf16c3020be196a8d3798761bda0b545a6bca3d.zip
pfsense-cbf16c3020be196a8d3798761bda0b545a6bca3d.tar.gz
Escape this before running.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/service-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc
index d52abd2..0e9009b 100644
--- a/etc/inc/service-utils.inc
+++ b/etc/inc/service-utils.inc
@@ -153,7 +153,7 @@ function stop_service($name) {
}
/* finally if we get here lets simply kill the service name */
if(is_process_running("{$name}"))
- mwexec("/usr/bin/killall {$name}");
+ mwexec("/usr/bin/killall " . escapeshellarg($name));
}
function restart_service($name) {
OpenPOWER on IntegriCloud