summaryrefslogtreecommitdiffstats
path: root/php-pear-1.9.4-restcache.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-13 11:33:57 +0200
committerRemi Collet <fedora@famillecollet.com>2012-08-13 11:33:57 +0200
commitbdd7b954ad27bb276a0ef0a81d4640ea7e1dab66 (patch)
tree80f2b54273dc1db63b0a7b419962e434b261f1f7 /php-pear-1.9.4-restcache.patch
parent0bf18fff7dff14f81c4ba0b16cab92b42b3861f7 (diff)
php-pear: sync with rawhide
Diffstat (limited to 'php-pear-1.9.4-restcache.patch')
-rw-r--r--php-pear-1.9.4-restcache.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/php-pear-1.9.4-restcache.patch b/php-pear-1.9.4-restcache.patch
new file mode 100644
index 0000000..361309b
--- /dev/null
+++ b/php-pear-1.9.4-restcache.patch
@@ -0,0 +1,21 @@
+
+Workaround for:
+
+ https://bugzilla.redhat.com/show_bug.cgi?id=747361
+
+--- REST.php.restcache
++++ REST.php
+@@ -234,6 +234,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)));
+ }