Browse Source

fixed #39 commands that need LOCK_SH fail as non-root

PEAR_1_4DEV
Greg Beaver 23 years ago
parent
commit
0c9a167bea
  1. 2
      pear/PEAR/Registry.php
  2. 1
      pear/package-PEAR.xml

2
pear/PEAR/Registry.php

@ -276,7 +276,7 @@ class PEAR_Registry extends PEAR
} }
$open_mode = 'w'; $open_mode = 'w';
// XXX People reported problems with LOCK_SH and '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)) { if (@!is_file($this->lockfile)) {
touch($this->lockfile); touch($this->lockfile);
} }

1
pear/package-PEAR.xml

@ -70,6 +70,7 @@ PEAR Installer:
* Fixed optional dependencies in Dependency.php * Fixed optional dependencies in Dependency.php
* Fix #25322 - bad md5sum should be fatal error * Fix #25322 - bad md5sum should be fatal error
* Package uninstall now also removes empty directories * Package uninstall now also removes empty directories
* Fixed locking problems for reading commands (pear list, pear info)
OS_Guess Class: OS_Guess Class:

Loading…
Cancel
Save