diff options
author | jim-p <jimp@pfsense.org> | 2012-06-23 19:54:49 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-06-23 19:54:49 -0400 |
commit | d94280cd85f5e603847aea50f96ce4d58a31439c (patch) | |
tree | b536d45204dedd079794786d2d801a9fcc94a4d1 | |
parent | 4593069602bd09ae183f1052cc117e54066bfd0b (diff) | |
download | pfsense-d94280cd85f5e603847aea50f96ce4d58a31439c.zip pfsense-d94280cd85f5e603847aea50f96ce4d58a31439c.tar.gz |
make sure this grep parameter is quoted
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 |
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)) { |