aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.rst1
-rw-r--r--sshfs.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog.rst b/ChangeLog.rst
index a8038b3..5285523 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -3,6 +3,7 @@ Unreleased Changes
* Truly disable the writeback cache, instead of just adjusting the
default and printing a warning when explicitly enabled.
+* SSHFS now supports O_APPEND.
Release 3.1.0 (2017-08-04)
--------------------------
diff --git a/sshfs.c b/sshfs.c
index 8786b4e..cc35577 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -2518,6 +2518,9 @@ static int sshfs_open_common(const char *path, mode_t mode,
if (fi->flags & O_TRUNC)
pflags |= SSH_FXF_TRUNC;
+ if (fi->flags & O_APPEND)
+ pflags |= SSH_FXF_APPEND;
+
sf = g_new0(struct sshfs_file, 1);
list_init(&sf->write_reqs);
pthread_cond_init(&sf->write_finished, NULL);