]> git.pond.sub.org Git - empserver/commitdiff
(ef_open): Fix fatal typo.
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 24 Oct 2005 20:42:27 +0000 (20:42 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 24 Oct 2005 20:42:27 +0000 (20:42 +0000)
src/lib/common/file.c

index f34c7e72be4e8b600ba05cc3944bcf1ae697faa7..4023cf93b9116313f718a762d4f493fa023b8dcd 100644 (file)
@@ -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) {