From 0692d429805a108659d6796e6d56ff38e6a91c40 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 8 Mar 2013 11:20:39 -0600 Subject: [PATCH] SFTP: Use stat instead of lstat for size() --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index c19f12fe..d27d293e 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -985,7 +985,7 @@ class Net_SFTP extends Net_SSH2 { */ function _size($filename) { - $result = $this->_stat($filename, NET_SFTP_LSTAT); + $result = $this->_stat($filename, NET_SFTP_STAT); if ($result === false) { return false; }