From 5030d124a1fcb5355c8c17d8164710312489f29a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 24 Oct 2005 20:42:27 +0000 Subject: [PATCH] (ef_open): Fix fatal typo. --- src/lib/common/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common/file.c b/src/lib/common/file.c index f34c7e72..4023cf93 100644 --- a/src/lib/common/file.c +++ b/src/lib/common/file.c @@ -107,7 +107,7 @@ ef_open(int type, int how) } ep->baseid = 0; ep->cids = 0; - ep->flags = (ep->flags & ~EFF_OPEN) | (how ^ ~EFF_CREATE); + ep->flags = (ep->flags & ~EFF_OPEN) | (how & ~EFF_CREATE); ep->fd = fd; if ((how & EFF_MEM) && ep->fids) { if (fillcache(ep, 0) != ep->fids) {