diff options
Diffstat (limited to 'com32/lib/sys/open.c')
-rw-r--r-- | com32/lib/sys/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/open.c b/com32/lib/sys/open.c index 3221bb60..1ed5bb4c 100644 --- a/com32/lib/sys/open.c +++ b/com32/lib/sys/open.c @@ -65,7 +65,7 @@ int open(const char *pathname, int flags, ...) fp = &__file_info[fd]; - handle = open_file(pathname, &fp->i.fd); + handle = open_file(pathname, flags, &fp->i.fd); if (handle < 0) { close(fd); errno = ENOENT; |