From 7d868c13a401d13f8777c0db5626832ac3f3a952 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 5 Aug 2006 01:05:07 +0000 Subject: Fixed #318 and add chmod for each mkdir --- framework/IO/TTarFileExtractor.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/IO/TTarFileExtractor.php') diff --git a/framework/IO/TTarFileExtractor.php b/framework/IO/TTarFileExtractor.php index 611662c5..4ff37b1f 100644 --- a/framework/IO/TTarFileExtractor.php +++ b/framework/IO/TTarFileExtractor.php @@ -460,6 +460,7 @@ class TTarFileExtractor .$v_header['filename'].'}'); return false; } + chmod($v_header['filename'], 0777); } } else { if (($v_dest_file = @fopen($v_header['filename'], "wb")) == 0) { @@ -549,6 +550,7 @@ class TTarFileExtractor $this->_error("Unable to create directory '$p_dir'"); return false; } + chmod($p_dir,0777); return true; } -- cgit v1.2.3