SOURCES: cacti-ioerror.patch (NEW) - do not loop forever on io error
glen
glen at pld-linux.org
Sun Oct 5 05:17:34 CEST 2008
Author: glen Date: Sun Oct 5 03:17:34 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- do not loop forever on io error
---- Files affected:
SOURCES:
cacti-ioerror.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/cacti-ioerror.patch
diff -u /dev/null SOURCES/cacti-ioerror.patch:1.1
--- /dev/null Sun Oct 5 05:17:35 2008
+++ SOURCES/cacti-ioerror.patch Sun Oct 5 05:17:28 2008
@@ -0,0 +1,12 @@
+--- cacti/lib/functions.php~ 2008-10-05 06:16:11.000000000 +0300
++++ cacti/lib/functions.php 2008-10-05 06:16:13.069722888 +0300
+@@ -437,6 +437,9 @@
+
+ if (file_exists($file_name)) {
+ $fp = fopen($file_name, "r");
++ if (!$fp) {
++ return $file_array;
++ }
+
+ /* reset back the number of bytes */
+ if ($number_of_lines > 0) {
================================================================
More information about the pld-cvs-commit
mailing list