diff options
author | Phil Davis <phil.davis@world.inf.org> | 2014-02-19 23:56:03 -0800 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2014-02-19 23:56:03 -0800 |
commit | 38cb3c392dae5b35e030b1dedc7524ef409596b5 (patch) | |
tree | 37358f7a90406eba7df20755a81dfd9cbfcb21ee /usr/local | |
parent | d3515e02d5b8ea9f0eb8245316015852b17193c9 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/crash_reporter.php | 2 |
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/>"; |