diff options
Diffstat (limited to 'io/open.c')
-rw-r--r-- | io/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io/open.c b/io/open.c index 24aa380339..d1df5c38d3 100644 --- a/io/open.c +++ b/io/open.c @@ -23,7 +23,7 @@ #include <stdio.h> -/* Open FILE with access OFLAG. If OFLAG includes O_CREAT, +/* Open FILE with access OFLAG. If O_CREAT or O_TMPFILE is in OFLAG, a third argument is the file protection. */ int __libc_open (file, oflag) @@ -38,7 +38,7 @@ __libc_open (file, oflag) return -1; } - if (oflag & O_CREAT) + if (__OPEN_NEEDS_MODE (oflag)) { va_list arg; va_start(arg, oflag); |