summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-14 15:32:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-14 15:32:55 +0000
commit3af86226c27ccb299b463a951277c9250e51ad14 (patch)
treef23299ad667fca3987409b804bc8ba0761d473dc /usr/local/www/diag_backup.php
parentb1e9ac0d10609d318b8d1f71d90407632f2c2791 (diff)
downloadpfsense-3af86226c27ccb299b463a951277c9250e51ad14.zip
pfsense-3af86226c27ccb299b463a951277c9250e51ad14.tar.gz
fopen requires to paramaters. be sure to include "r"
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 76edb6a..262ad6d 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -62,7 +62,7 @@ if ($_POST) {
if (is_uploaded_file($_FILES['conffile']['tmp_name'])) {
if (config_install($_FILES['conffile']['tmp_name']) == 0) {
$command = "/sbin/sysctl -a | grep carp";
- $fd = fopen($_FILES['conffile']['tmp_name']);
+ $fd = fopen($_FILES['conffile']['tmp_name'], "r");
if(!$fd) {
log_error("Warning, could not open " . $_FILES['conffile']['tmp_name']);
return 1;
OpenPOWER on IntegriCloud