]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Fix stupid braino in previous commit.
authorDag-Erling Smørgrav <des@FreeBSD.org>
Wed, 23 May 2007 10:06:03 +0000 (10:06 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Wed, 23 May 2007 10:06:03 +0000 (10:06 +0000)
libutil/flopen.c

index 92254cc1c3cf51b577e925f561532721d635b091..b99055ea7bc1d45ec60f81e0a45d32d954a42f16 100644 (file)
@@ -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)