From 0c9a167beaa56032dd8840bcd0f3cffe3cae2a81 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 28 Sep 2003 05:07:27 +0000 Subject: fixed #39 commands that need LOCK_SH fail as non-root --- pear/PEAR/Registry.php | 2 +- pear/package-PEAR.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index 96ac23087f..c28d2039ae 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -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); } diff --git a/pear/package-PEAR.xml b/pear/package-PEAR.xml index c5a036956a..1f993b00e0 100644 --- a/pear/package-PEAR.xml +++ b/pear/package-PEAR.xml @@ -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: -- cgit v1.2.1