SOURCES: cacti-rrdresourcecheck.patch (NEW) - do not attempt to close illeg...

glen glen at pld-linux.org
Fri Nov 28 01:35:44 CET 2008


Author: glen                         Date: Fri Nov 28 00:35:44 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- do not attempt to close illegal resource

---- Files affected:
SOURCES:
   cacti-rrdresourcecheck.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/cacti-rrdresourcecheck.patch
diff -u /dev/null SOURCES/cacti-rrdresourcecheck.patch:1.1
--- /dev/null	Fri Nov 28 01:35:45 2008
+++ SOURCES/cacti-rrdresourcecheck.patch	Fri Nov 28 01:35:39 2008
@@ -0,0 +1,13 @@
+--- cacti/lib/rrd.php~	2008-10-07 19:32:18.000000000 +0300
++++ cacti/lib/rrd.php	2008-11-28 02:29:52.807698495 +0200
+@@ -54,7 +54,9 @@
+ 
+ function rrd_close($rrd_struc) {
+ 	/* close the rrdtool file descriptor */
+-	pclose($rrd_struc["fd"]);
++	if (is_resource($rrd_struc["fd"])) {
++		pclose($rrd_struc["fd"]);
++	}
+ }
+ 
+ function rrd_get_fd(&$rrd_struc, $fd_type) {
================================================================


More information about the pld-cvs-commit mailing list