mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 18:02:58 +00:00
attr wasn't defined
This commit is contained in:
parent
4769de45f0
commit
a64103a386
@ -1635,11 +1635,13 @@ class Net_SFTP extends Net_SSH2
|
||||
$atime = $time;
|
||||
}
|
||||
|
||||
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $time, $atime);
|
||||
|
||||
$packet = pack('Na*', strlen($filename), $filename);
|
||||
$packet.= $this->version >= 5 ?
|
||||
pack('N2', 0, NET_SFTP_OPEN_OPEN_EXISTING) :
|
||||
pack('N', NET_SFTP_OPEN_WRITE | NET_SFTP_OPEN_CREATE | NET_SFTP_OPEN_EXCL);
|
||||
$packet.= pack('N3', NET_SFTP_ATTR_ACCESSTIME, $time, $atime);
|
||||
$packet.= $attr;
|
||||
|
||||
if (!$this->_send_sftp_packet(NET_SFTP_OPEN, $packet)) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user