summaryrefslogtreecommitdiff
path: root/io/open64.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/open64.c')
-rw-r--r--io/open64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io/open64.c b/io/open64.c
index edd5fd3432..f87ee57099 100644
--- a/io/open64.c
+++ b/io/open64.c
@@ -21,7 +21,7 @@
#include <stddef.h>
#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_open64 (file, oflag)
@@ -36,7 +36,7 @@ __libc_open64 (file, oflag)
return -1;
}
- if (oflag & O_CREAT)
+ if (__OPEN_NEEDS_MODE (oflag))
{
va_list arg;
va_start (arg, oflag);