diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-05-23 10:06:03 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-05-23 10:06:03 +0000 |
commit | d31764b41b49a2d385a6b4f3da0bdfec713f0305 (patch) | |
tree | 5007e797dd76144ece41f439d600af4a9a74eb29 /libutil | |
parent | 4ffe7630675d3faf9068264f9a1e7b494a71477b (diff) | |
download | pw-darwin-d31764b41b49a2d385a6b4f3da0bdfec713f0305.tar.gz pw-darwin-d31764b41b49a2d385a6b4f3da0bdfec713f0305.tar.zst pw-darwin-d31764b41b49a2d385a6b4f3da0bdfec713f0305.zip |
Fix stupid braino in previous commit.
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/flopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |