Skip to content

Commit

Permalink
Updates is_really_writable call in Tar & Zip libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Jul 26, 2011
1 parent d966a3e commit a798f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion external/Tar.php
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ function _extractList($p_path, &$p_list_detail, $p_mode, $p_file_list, $p_remove
$this->_error('Directory '.$v_header['filename'].' already exists as a file');
return false;
}
if (!is_really_writable($v_header['filename'])) {
if (!expUtil::isReallyWritable($v_header['filename'])) {
$this->_error('File '.$v_header['filename'].' already exists and is write protected');
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion external/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -2082,7 +2082,7 @@ function _extractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$
//return $v_result;
}
// ----- Look if file is write protected
else if (!is_really_writable($p_entry['filename']))
else if (!expUtil::isReallyWritable($p_entry['filename']))
{

// ----- Change the file status
Expand Down

0 comments on commit a798f18

Please sign in to comment.