From 7e416149c17692013fce6458c93cd620cfa738e6 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Sat, 10 Sep 2011 05:46:19 +0000 Subject: [PATCH] - NET_SFTP_APPEND -> NET_SFTP_RESUME git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@178 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Net/SFTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 28cb01bd..dcff9e32 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -1275,11 +1275,11 @@ class Net_SFTP extends Net_SSH2 { $flags = NET_SFTP_OPEN_WRITE | NET_SFTP_OPEN_CREATE; // according to the SFTP specs, NET_SFTP_OPEN_APPEND should "force all writes to append data at the end of the file." // in practice, it doesn't seem to do that. - //$flags|= ($mode & NET_SFTP_APPEND) ? NET_SFTP_OPEN_APPEND : NET_SFTP_OPEN_TRUNCATE; + //$flags|= ($mode & NET_SFTP_RESUME) ? NET_SFTP_OPEN_APPEND : NET_SFTP_OPEN_TRUNCATE; // if NET_SFTP_OPEN_APPEND worked as it should the following (up until the -----------) wouldn't be necessary $offset = 0; - if ($mode & NET_SFTP_APPEND) { + if ($mode & NET_SFTP_RESUME) { $size = $this->_size($remote_file); $offset = $size !== false ? $size : 0; } else {