Commit 2c9727d4 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Fix an exceptionally stupid logic error in the previous commit.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1468 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 361f9f64
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment