1
0
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:
terrafrost 2013-05-09 17:27:56 -04:00
parent aa3e6c1a99
commit b4ebc5b931

View File

@ -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;
}