#25345 [Opn->Bgs]: Add touch() after copy()

From: Date: Wed, 01 Sep 2004 14:22:25 +0000
Subject: #25345 [Opn->Bgs]: Add touch() after copy()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33156@lists.php.net to get a copy of this message
ID: 25345 Updated by: alan_k@php.net Reported By: phpbugsspam at netebb dot com -Status: Open +Status: Bogus Bug Type: PEAR related Operating System: Any PHP Version: 4CVS-2003-09-01 (stable) New Comment: can you move this on pear.php.net - none of the pear maintainers read bugs.php.net and it more likely the package maintainer will be able to help. Previous Comments: ------------------------------------------------------------------------ [2003-09-01 14:17:56] phpbugsspam at netebb dot com Description: ------------ Here's the patch Index: Installer.php =================================================================== RCS file: /repository/php-src/pear/PEAR/Installer.php,v retrieving revision 1.104 diff -u -r1.104 Installer.php --- Installer.php 31 Aug 2003 16:41:27 -0000 1.104 +++ Installer.php 1 Sep 2003 19:15:56 -0000 @@ -230,6 +230,8 @@ return $this->raiseError("failed to write $dest_file", PEAR_INSTALLER_FAILED); } + $stat = stat($orig_file); + @touch($dest_file, $stat[9]); $this->log(3, "+ cp $orig_file $dest_file"); if (isset($atts['md5sum'])) { $md5sum = md5_file($dest_file); @@ -963,6 +965,8 @@ $this->rollbackFileTransaction(); return $this->raiseError("failed to copy $bn to $copyto"); } + $stat = stat($ext['file']); + @touch($copyto, $stat[9]); $pkginfo['filelist'][$bn] = array( 'role' => 'ext', 'installed_as' => $dest, ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25345&edit=1

« previous php.pear.dev (#33156) next »