summaryrefslogtreecommitdiff
path: root/main/astfd.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-08-09 15:42:02 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-08-09 15:42:02 +0000
commit59aebb76b41fbb0ab588ece5b65e5cef716fea2c (patch)
tree7369b8d7f9dc05ac5eb170d6edf57e30b0dbf8b3 /main/astfd.c
parente05992889b1c3c019206de5d6ee7d840c246c54e (diff)
Merged revisions 211274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r211274 | tilghman | 2009-08-09 10:41:01 -0500 (Sun, 09 Aug 2009) | 2 lines Small oops. Clear the flags which have been checked. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 {