r1468 - trunk/varnish-cache/lib/libvarnish

des at projects.linpro.no des at projects.linpro.no
Wed May 23 12:07:49 CEST 2007


Author: des
Date: 2007-05-23 12:07:49 +0200 (Wed, 23 May 2007)
New Revision: 1468

Modified:
   trunk/varnish-cache/lib/libvarnish/flopen.c
Log:
Fix an exceptionally stupid logic error in the previous commit.


Modified: trunk/varnish-cache/lib/libvarnish/flopen.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/flopen.c	2007-05-23 08:14:11 UTC (rev 1467)
+++ trunk/varnish-cache/lib/libvarnish/flopen.c	2007-05-23 10:07:49 UTC (rev 1468)
@@ -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 @@
 		operation |= LOCK_NB;
 
 	truncate = (flags & O_TRUNC);
-	flags |= ~O_TRUNC;
+	flags &= ~O_TRUNC;
 
 	for (;;) {
 		if ((fd = open(path, flags, mode)) == -1)




More information about the varnish-commit mailing list