Main repository for pfSense
Go to file
Phil Davis b5b8f8dd2f Enhance error output when package file not found - RELENG_2_2
I had a system that had upgraded but the Notes package had not managed to (re)install. In that situation the Notes item is on the Status menu but there is no notes.xml or other notes code on the the system.
When I go to Status->Notes I get:
Warning: substr_compare(): The start position cannot exceed initial string length in /usr/local/www/pkg.php on line 56 File not found notes.xml

The warning is because realpath() returns false in this case and cannot be used is a parameter to substr_compare().

Handle this case, and make the error message more informative.

Note: In RELENG_2_2 print_info_box_np() puts a "Close" button and has no way to stop that. It looks dumb, but that can be cleaned up in 2.3 master. I am just doing this in RELENG_2_2 to avoid the PHP warning.
2016-01-25 13:34:48 +05:45
boot Remove old write caching tunable as well. Ticket #4203 2015-01-12 12:43:13 -06:00
cf/conf
conf.default Use 1-6 rather than 0-5 for IPsec logging levels, to stay away from complications of 0 due to PHP stupidity. Upgrade config to add 1 to any configured log levels. Default to 1 as log level where none is configured by the user. Ticket #5340 2015-10-26 00:23:37 -05:00
etc Initialize $stop_time inside foreach to make sure it resets to proper value each iteration since it's changed inside loop. Reported on https://github.com/pfsense/pfsense/pull/2487 2016-01-20 15:22:00 -02:00
root Set proxy env vars on interactive shell and also on crontab to make all scripts be able to use it. Ticket #3789 2014-11-11 11:57:38 -02:00
sbin Set this to /8 instead since that's how it's done in stock FreeBSD 10.1. Ticket #3941 2014-11-10 21:52:52 -06:00
tmp de-activate sync on upgrade where it's enabled now that the root passwd/group problem is fixed. Ticket #4523 2015-07-03 23:11:47 -05:00
usr Enhance error output when package file not found - RELENG_2_2 2016-01-25 13:34:48 +05:45
.gitattributes
.gitignore
license.txt Welcome 2015 2014-12-31 16:22:27 -02:00