Mailing List Archive

r1468 - trunk/varnish-cache/lib/libvarnish
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)