From 7524ca7a80d9911abd7b17734e3b2954c7922d2c Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Thu, 23 Apr 2015 15:24:33 +0000 Subject: [PATCH] MFC r281582: Remove extra flags from r250462. --- usr.bin/lockf/lockf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c index 9a6141f40acf..5555c488cd15 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);