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

This commit is contained in:
Greg Beaver 2003-09-28 05:07:27 +00:00
parent 361c32aa4e
commit 0c9a167bea
2 changed files with 2 additions and 1 deletions

View 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);
}

View 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: