diff options
author | wei <> | 2006-08-05 01:05:07 +0000 |
---|---|---|
committer | wei <> | 2006-08-05 01:05:07 +0000 |
commit | 7d868c13a401d13f8777c0db5626832ac3f3a952 (patch) | |
tree | a538d61f69fb59b2d59df67b14065cd08864f488 /framework/IO | |
parent | 93c4193f4a3c315c7785bf5f9f522c955ef6fce7 (diff) |
Fixed #318 and add chmod for each mkdir
Diffstat (limited to 'framework/IO')
-rw-r--r-- | framework/IO/TTarFileExtractor.php | 2 |
1 files changed, 2 insertions, 0 deletions
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;
}
|