Browse Source

use realpath instead of chdir

(Roman Neuhauser <neuhauser@bellavista.cz>)
PEAR_1_4DEV
Tomas V.V.Cox 23 years ago
parent
commit
f46b5641b7
  1. 6
      pear/PEAR/Installer.php

6
pear/PEAR/Installer.php

@ -957,11 +957,7 @@ class PEAR_Installer extends PEAR_Common
// {{{ Decompress pack in tmp dir -------------------------------------
// To allow relative package file names
$oldcwd = getcwd();
if (@chdir(dirname($pkgfile))) {
$pkgfile = getcwd() . DIRECTORY_SEPARATOR . basename($pkgfile);
chdir($oldcwd);
}
$pkgfile = realpath($pkgfile);
if (PEAR::isError($tmpdir = System::mktemp('-d'))) {
return $tmpdir;

Loading…
Cancel
Save