mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 12:44:38 +01:00
SFTP: fix formatting of touch open call
This commit is contained in:
parent
aa3e6c1a99
commit
b4ebc5b931
@ -1061,7 +1061,7 @@ class Net_SFTP extends Net_SSH2 {
|
||||
|
||||
$flags = NET_SFTP_OPEN_CREATE | NET_SFTP_OPEN_EXCL;
|
||||
$attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $time, $atime);
|
||||
$packet = pack('Na*N2', strlen($filename), $filename, $flags, $attr);
|
||||
$packet = pack('Na*Na*', strlen($filename), $filename, $flags, $attr);
|
||||
if (!$this->_send_sftp_packet(NET_SFTP_OPEN, $packet)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user