summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-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 9195076..4990699 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -99,7 +99,7 @@ function pkg_call($params) {
}
// XXX: Use proper call with fifo to collect statistics
- $_gc = exec("env ASSUME_ALWAYS_YES=true /usr/sbin/pkg " . escapeshellarg($params), $output, $rc);
+ $_gc = exec(escapeshellcmd("env ASSUME_ALWAYS_YES=true /usr/sbin/pkg {$params}"), $output, $rc);
return ($rc == 0);
}
OpenPOWER on IntegriCloud