From 367fede9c0949943016c5b142501a19f2568cea8 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 15 Sep 2021 20:23:31 -0500 Subject: [PATCH] rm double _precheck from rename() --- phpseclib/Net/SFTP.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 79265bde..742ae23c 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -3106,10 +3106,6 @@ class Net_SFTP extends Net_SSH2 return false; } - if (!$this->_precheck()) { - return false; - } - $oldname = $this->_realpath($oldname); $newname = $this->_realpath($newname); if ($oldname === false || $newname === false) {