]> granicus.if.org Git - php/commitdiff
fixed #39 commands that need LOCK_SH fail as non-root
authorGreg Beaver <cellog@php.net>
Sun, 28 Sep 2003 05:07:27 +0000 (05:07 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 28 Sep 2003 05:07:27 +0000 (05:07 +0000)
pear/PEAR/Registry.php
pear/package-PEAR.xml

index 96ac23087f6dfe52a815b03b1d3bbd92440f85e9..c28d2039aea58320d8cfe4e972d5f6784562141a 100644 (file)
@@ -276,7 +276,7 @@ class PEAR_Registry extends PEAR
             }
             $open_mode = 'w';
             // XXX People reported problems with LOCK_SH and 'w'
-            if ($mode === LOCK_SH) {
+            if ($mode === LOCK_SH || $mode === LOCK_UN) {
                 if (@!is_file($this->lockfile)) {
                     touch($this->lockfile);
                 }
index c5a036956a6cbf6efb4cac59c2deb38de7797827..1f993b00e02cc70369ab3cd10e0d98b46bb0d6cf 100644 (file)
@@ -70,6 +70,7 @@ PEAR Installer:
 * Fixed optional dependencies in Dependency.php
 * Fix #25322 - bad md5sum should be fatal error
 * Package uninstall now also removes empty directories
+* Fixed locking problems for reading commands (pear list, pear info)
 
 OS_Guess Class: