mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
Merge branch '2.0'
This commit is contained in:
commit
e2e719ee29
@ -428,7 +428,7 @@ class SFTP extends SSH2
|
||||
|
||||
$this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_OPEN;
|
||||
|
||||
$response = $this->get_channel_packet(self::CHANNEL);
|
||||
$response = $this->get_channel_packet(self::CHANNEL, true);
|
||||
if ($response === false) {
|
||||
return false;
|
||||
}
|
||||
@ -449,7 +449,7 @@ class SFTP extends SSH2
|
||||
|
||||
$this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_REQUEST;
|
||||
|
||||
$response = $this->get_channel_packet(self::CHANNEL);
|
||||
$response = $this->get_channel_packet(self::CHANNEL, true);
|
||||
if ($response === false) {
|
||||
// from PuTTY's psftp.exe
|
||||
$command = "test -x /usr/lib/sftp-server && exec /usr/lib/sftp-server\n" .
|
||||
@ -473,7 +473,7 @@ class SFTP extends SSH2
|
||||
|
||||
$this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_REQUEST;
|
||||
|
||||
$response = $this->get_channel_packet(self::CHANNEL);
|
||||
$response = $this->get_channel_packet(self::CHANNEL, true);
|
||||
if ($response === false) {
|
||||
return false;
|
||||
}
|
||||
@ -2983,7 +2983,7 @@ class SFTP extends SSH2
|
||||
|
||||
// SFTP packet length
|
||||
while (strlen($this->packet_buffer) < 4) {
|
||||
$temp = $this->get_channel_packet(self::CHANNEL);
|
||||
$temp = $this->get_channel_packet(self::CHANNEL, true);
|
||||
if (is_bool($temp)) {
|
||||
$this->packet_type = false;
|
||||
$this->packet_buffer = '';
|
||||
@ -3000,7 +3000,7 @@ class SFTP extends SSH2
|
||||
|
||||
// SFTP packet type and data payload
|
||||
while ($tempLength > 0) {
|
||||
$temp = $this->get_channel_packet(self::CHANNEL);
|
||||
$temp = $this->get_channel_packet(self::CHANNEL, true);
|
||||
if (is_bool($temp)) {
|
||||
$this->packet_type = false;
|
||||
$this->packet_buffer = '';
|
||||
|
@ -3645,7 +3645,7 @@ class SSH2
|
||||
$data = Strings::shift($response, $length);
|
||||
$this->stdErrorLog.= $data;
|
||||
if ($skip_extended || $this->quiet_mode) {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if ($client_channel == $channel && $this->channel_status[$channel] == NET_SSH2_MSG_CHANNEL_DATA) {
|
||||
return $data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user