summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-27 21:04:10 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-27 21:04:10 -0400
commitc50da179429394e2ecd00613849b0c2ceceba305 (patch)
tree348e67c82c69bd5d4e9a56c59d38371b3422232a /etc/inc/util.inc
parent29c7ac0d66d16c1d17de11ca8e107a47f008fe6c (diff)
downloadpfsense-c50da179429394e2ecd00613849b0c2ceceba305.zip
pfsense-c50da179429394e2ecd00613849b0c2ceceba305.tar.gz
If gzsig does not exist then return 1
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 4b59845..77ad536 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -687,6 +687,9 @@ function verify_digital_signature($fname) {
global $g;
+ if(!file_exists("/usr/local/sbin/gzsig"))
+ return 1;
+
return mwexec("/usr/local/sbin/gzsig verify {$g['etc_path']}/pubkey.pem < " . escapeshellarg($fname));
}
@@ -1000,4 +1003,4 @@ function msort($array, $id="id", $sort_ascending=true) {
}
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud