aboutsummaryrefslogtreecommitdiffstats
path: root/main/astfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/astfd.c')
-rw-r--r--main/astfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astfd.c b/main/astfd.c
index b0871b6bc..6a9f70e42 100644
--- a/main/astfd.c
+++ b/main/astfd.c
@@ -98,7 +98,7 @@ int __ast_fdleak_open(const char *file, int line, const char *func, const char *
flags & O_RDONLY ? "|O_RDONLY" : "",
flags & O_WRONLY ? "|O_WRONLY" : "",
"");
- flags |= ~(O_CREAT | O_APPEND | O_EXCL | O_NONBLOCK | O_TRUNC | O_RDWR | O_RDONLY | O_WRONLY);
+ flags &= ~(O_CREAT | O_APPEND | O_EXCL | O_NONBLOCK | O_TRUNC | O_RDWR | O_RDONLY | O_WRONLY);
if (flags) {
STORE_COMMON(res, "open", "\"%s\",%s|%d,%04o", path, sflags, flags, mode);
} else {