summaryrefslogtreecommitdiffstats
path: root/php-pear-1.10-restcache.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-25 17:42:18 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-25 17:42:18 +0200
commitfac0638d1f1a637f2844f267d3b4b05c240b44b7 (patch)
tree1f8620838d0daa0c86db1c7b715bd6f6a997ab30 /php-pear-1.10-restcache.patch
parent1ee831e2409f33442918ac04de099e535c880641 (diff)
php-pear: 1.10.0dev1
Diffstat (limited to 'php-pear-1.10-restcache.patch')
-rw-r--r--php-pear-1.10-restcache.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/php-pear-1.10-restcache.patch b/php-pear-1.10-restcache.patch
new file mode 100644
index 0000000..5979bca
--- /dev/null
+++ b/php-pear-1.10-restcache.patch
@@ -0,0 +1,21 @@
+
+Workaround for:
+
+ https://bugzilla.redhat.com/show_bug.cgi?id=747361
+
+--- REST.php.restcache
++++ REST.php
+@@ -235,6 +235,13 @@
+ }
+ }
+
++ if (!is_writeable($cache_dir)) {
++ // If writing to the cache dir is not going to work, silently do nothing.
++ // An ugly hack, but retains compat with PEAR 1.9.1 where many commands
++ // work fine as non-root user (w/out write access to default cache dir).
++ return true;
++ }
++
+ if ($cacheid === null && $nochange) {
+ $cacheid = unserialize(implode('', file($cacheidfile)));
+ }