Skip to content

Commit 8a7992a

Browse files
committed
fix #121, O_APPEND checked against wrong flags
1 parent f851cb2 commit 8a7992a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrappers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ int __unix_fcntl(int fd, int cmd, void *arg)
163163
// I think these are the only flags you can change.
164164
if (unixflags & 4)
165165
linuxflags |= O_NONBLOCK;
166-
if (linuxflags & 8)
166+
if (unixflags & 8)
167167
linuxflags |= O_APPEND;
168168

169169
if (fcntl(fd, cmd, &linuxflags) == 0) {

0 commit comments

Comments
 (0)