]> git.pld-linux.org Git - packages/cacti-plugin-boost.git/commitdiff
- fix invalid chmod mode cacti-plugin-boost-4_3-0_5
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Dec 2010 21:40:06 +0000 (21:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-plugin-boost.spec -> 1.9
    chmod.patch -> 1.1

cacti-plugin-boost.spec
chmod.patch [new file with mode: 0644]

index 02c93a9892f45bfe38e7d74dcad67b9e4ac83e9f..9028de9dc87ce871f97b63bc9bfa5e72e1aa9cbd 100644 (file)
@@ -6,12 +6,13 @@ Summary:      Plugin for Cacti - Boost
 Summary(pl.UTF-8):     Wtyczka do Cacti - Boost
 Name:          cacti-plugin-boost
 Version:       4.3
-Release:       0.4
+Release:       0.5
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       http://docs.cacti.net/_media/plugin:boost-v%{version}-1.tgz
 # Source0-md5: f4df111245fd9c11c5496b36e7971ef6
 Patch0:                paths.patch
+Patch1:                chmod.patch
 URL:           http://docs.cacti.net/plugin:boost
 BuildRequires: rpmbuild(macros) >= 1.553
 Requires:      cacti >= 0.8.7g-6
@@ -52,6 +53,7 @@ dużych serwisów.
 mv boost/* .; rmdir boost
 %undos -f php
 %patch0 -p1
+%patch1 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/chmod.patch b/chmod.patch
new file mode 100644 (file)
index 0000000..4058681
--- /dev/null
@@ -0,0 +1,15 @@
+chmod 666 is invalid, it should be octal: 0666
+
+but i'd rather not chmod at all, if webserver can write it, so can it read it.
+
+really, it should be configurable (perhaps take some cacti var?)
+--- cacti-plugin-boost-4.3/setup.php~  2010-12-14 09:15:05.048058428 +0200
++++ cacti-plugin-boost-4.3/setup.php   2010-12-14 23:38:26.442892330 +0200
+@@ -929,7 +929,6 @@
+                                               if ($fileptr = fopen($cache_file, "w")) {
+                                                       fwrite($fileptr, $data["output"], strlen($data["output"]));
+                                                       fclose($fileptr);
+-                                                      chmod($cache_file, 666);
+                                               }
+                                       }
+                               }else{
This page took 0.050217 seconds and 4 git commands to generate.