diff --git a/repos/libports/src/lib/libc/file_operations.cc b/repos/libports/src/lib/libc/file_operations.cc index d385a60a58..b448e6fb07 100644 --- a/repos/libports/src/lib/libc/file_operations.cc +++ b/repos/libports/src/lib/libc/file_operations.cc @@ -555,6 +555,9 @@ __SYS_(int, open, (const char *pathname, int flags, ...), return -1; new_fdo->path(resolved_path.base()); + if (flags & O_APPEND) + lseek(new_fdo->libc_fd, 0, SEEK_END); + return new_fdo->libc_fd; })