]> err.no Git - varnish/commitdiff
Fix an exceptionally stupid logic error in the previous commit.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 May 2007 10:07:49 +0000 (10:07 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 May 2007 10:07:49 +0000 (10:07 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1468 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvarnish/flopen.c

index d0c03f7c2089dc967f937754cab4c32a198605a7..fcca6d3bfc3cbf46a4ff0b6c4445f9e5cc9ac4c1 100644 (file)
@@ -26,7 +26,7 @@
  *
  * $Id$
  * Derived from:
- * $FreeBSD: src/lib/libutil/flopen.c,v 1.5 2007/05/23 08:12:34 des Exp $
+ * $FreeBSD: src/lib/libutil/flopen.c,v 1.6 2007/05/23 10:06:03 des Exp $
  */
 
 #include <sys/file.h>
@@ -64,7 +64,7 @@ flopen(const char *path, int flags, ...)
                operation |= LOCK_NB;
 
        truncate = (flags & O_TRUNC);
-       flags |= ~O_TRUNC;
+       flags &= ~O_TRUNC;
 
        for (;;) {
                if ((fd = open(path, flags, mode)) == -1)