diff options
Diffstat (limited to 'usr.bin/lockf/lockf.c')
-rw-r--r-- | usr.bin/lockf/lockf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c index 9a6141f..5555c48 100644 --- a/usr.bin/lockf/lockf.c +++ b/usr.bin/lockf/lockf.c @@ -169,7 +169,7 @@ acquire_lock(const char *name, int flags) { int fd; - if ((fd = open(name, flags|O_RDONLY|O_EXLOCK|flags, 0666)) == -1) { + if ((fd = open(name, O_RDONLY|O_EXLOCK|flags, 0666)) == -1) { if (errno == EAGAIN || errno == EINTR) return (-1); err(EX_CANTCREAT, "cannot open %s", name); |