summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2014-02-19 23:56:03 -0800
committerPhil Davis <phil.davis@world.inf.org>2014-02-19 23:56:03 -0800
commit38cb3c392dae5b35e030b1dedc7524ef409596b5 (patch)
tree37358f7a90406eba7df20755a81dfd9cbfcb21ee /usr/local/www/crash_reporter.php
parentd3515e02d5b8ea9f0eb8245316015852b17193c9 (diff)
downloadpfsense-38cb3c392dae5b35e030b1dedc7524ef409596b5.zip
pfsense-38cb3c392dae5b35e030b1dedc7524ef409596b5.tar.gz
Make a good copy of PHP_errors.log for crash reporter
Forum report https://forum.pfsense.org/index.php/topic,72877.0.html
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-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..075bab5 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