SFTP: Use stat instead of lstat for size()

This commit is contained in:
terrafrost 2013-03-08 11:20:39 -06:00
parent 51d106b6ec
commit 0692d42980

View File

@ -985,7 +985,7 @@ class Net_SFTP extends Net_SSH2 {
*/ */
function _size($filename) function _size($filename)
{ {
$result = $this->_stat($filename, NET_SFTP_LSTAT); $result = $this->_stat($filename, NET_SFTP_STAT);
if ($result === false) { if ($result === false) {
return false; return false;
} }