SFTP: backport fix from master

This commit is contained in:
terrafrost 2022-02-14 17:42:49 -06:00
parent 247d23f40e
commit 86c0007078

View File

@ -3026,7 +3026,7 @@ class SFTP extends SSH2
$attr = []; $attr = [];
list($attr[$key]) = Strings::unpackSSH2('Q', $response); list($attr[$key]) = Strings::unpackSSH2('Q', $response);
if ($flags & NET_SFTP_ATTR_SUBSECOND_TIMES) { if ($flags & NET_SFTP_ATTR_SUBSECOND_TIMES) {
list($attr[key . '-nseconds']) = Strings::unpackSSH2('N', $response); list($attr[$key . '-nseconds']) = Strings::unpackSSH2('N', $response);
} }
return $attr; return $attr;
} }