summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-20 08:59:06 +0000
committerErmal <eri@pfsense.org>2014-02-20 08:59:06 +0000
commit9c8f0a3a1bdcad477d59853d84b640eaa9e3eead (patch)
treedcd8bd6e6f10f496aa34419ad6aea2a576e48a0d /usr
parent5b699be7e95c0f14ff2dbc861fd8f1aebc12503b (diff)
downloadpfsense-9c8f0a3a1bdcad477d59853d84b640eaa9e3eead.zip
pfsense-9c8f0a3a1bdcad477d59853d84b640eaa9e3eead.tar.gz
Fix the issue with crash reporter even here as per pull #954
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/crash_reporter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index 853be0a..978e372 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -105,7 +105,7 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors);
mkdir("/var/crash", 0750, true);
@file_put_contents("/var/crash/crashreport_header.txt", $crash_report_header);
if(file_exists("/tmp/PHP_errors.log"))
- copy("/tmp/PHP_errors.log", "/var/crash/");
+ @copy("/tmp/PHP_errors.log", "/var/crash/PHP_errors.log");
exec("/usr/bin/gzip /var/crash/*");
$files_to_upload = glob("/var/crash/*");
echo "<p/>";
OpenPOWER on IntegriCloud