From d31764b41b49a2d385a6b4f3da0bdfec713f0305 Mon Sep 17 00:00:00 2001 From: Dag-Erling Smørgrav Date: Wed, 23 May 2007 10:06:03 +0000 Subject: Fix stupid braino in previous commit. --- libutil/flopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libutil') diff --git a/libutil/flopen.c b/libutil/flopen.c index 92254cc..b99055e 100644 --- a/libutil/flopen.c +++ b/libutil/flopen.c @@ -63,7 +63,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) -- cgit v1.2.3-56-ge451