summaryrefslogtreecommitdiff
path: root/src/stdio/__fdopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/__fdopen.c')
-rw-r--r--src/stdio/__fdopen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/__fdopen.c b/src/stdio/__fdopen.c
index 59690f6d..a2ca62b1 100644
--- a/src/stdio/__fdopen.c
+++ b/src/stdio/__fdopen.c
@@ -33,6 +33,7 @@ FILE *__fdopen(int fd, const char *mode)
if (*mode == 'a') {
int flags = __syscall(SYS_fcntl, fd, F_GETFL);
__syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND);
+ f->flags |= F_APP;
}
f->fd = fd;