summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-06-23 19:54:49 -0400
committerjim-p <jimp@pfsense.org>2012-06-23 19:54:49 -0400
commitd94280cd85f5e603847aea50f96ce4d58a31439c (patch)
treeb536d45204dedd079794786d2d801a9fcc94a4d1
parent4593069602bd09ae183f1052cc117e54066bfd0b (diff)
downloadpfsense-d94280cd85f5e603847aea50f96ce4d58a31439c.zip
pfsense-d94280cd85f5e603847aea50f96ce4d58a31439c.tar.gz
make sure this grep parameter is quoted
-rw-r--r--etc/inc/pkg-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 23e4fb5..8ed44aa 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -824,7 +824,7 @@ function install_package_xml($pkg) {
$pkg_name_for_pbi_match = strtolower($pkg) . "-";
exec("/usr/local/sbin/pbi_info | grep '^{$pkg_name_for_pbi_match}' | xargs /usr/local/sbin/pbi_info | awk '/Prefix/ {print $2}'",$pbidirarray);
$pbidir0 = $pbidirarray[0];
- exec("find /usr/local/etc/ -name *.conf | grep {$pkg}",$files);
+ exec("find /usr/local/etc/ -name *.conf | grep \"{$pkg}\"",$files);
foreach($files as $f) {
$pbiconf = str_replace('/usr/local',$pbidir0,$f);
if(is_file($pbiconf) || is_link($pbiconf)) {
OpenPOWER on IntegriCloud