]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- do not attempt to close illegal resource
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 28 Nov 2008 00:35:39 +0000 (00:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-rrdresourcecheck.patch -> 1.1

cacti-rrdresourcecheck.patch [new file with mode: 0644]

diff --git a/cacti-rrdresourcecheck.patch b/cacti-rrdresourcecheck.patch
new file mode 100644 (file)
index 0000000..8337574
--- /dev/null
@@ -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) {
This page took 0.067392 seconds and 4 git commands to generate.