aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-09 15:41:01 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-08-09 15:41:01 +0000
commit9f4c1d7a4e1ee5f0ea1b21af53eb7357366ff661 (patch)
tree0a644107adce7edd68b168aae602625582ada159 /main
parent55edcb1cba5372c881cd8c17de3e7f8b7f550b0d (diff)
Small oops. Clear the flags which have been checked.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@211274 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/astfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astfd.c b/main/astfd.c
index 9880c6b7c..ca852133e 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 {