From b4ebc5b9311c9d509d9389754586bb4a8eb285c9 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 9 May 2013 17:27:56 -0400 Subject: [PATCH] SFTP: fix formatting of touch open call --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index caee65fb..4aaa43f2 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -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; }