diff options
Diffstat (limited to 'io/open64_2.c')
-rw-r--r-- | io/open64_2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io/open64_2.c b/io/open64_2.c index d56dc65..0fd562d 100644 --- a/io/open64_2.c +++ b/io/open64_2.c @@ -22,8 +22,8 @@ int __open64_2 (const char *file, int oflag) { - if (oflag & O_CREAT) - __fortify_fail ("invalid open64 call: O_CREAT without mode"); + if (__OPEN_NEEDS_MODE (oflag)) + __fortify_fail ("invalid open64 call: O_CREAT or O_TMPFILE without mode"); return __open64 (file, oflag); } |