svn commit: r281582 - head/usr.bin/lockf

Bryan Drewery bdrewery at FreeBSD.org
Thu Apr 16 02:24:42 UTC 2015


Author: bdrewery
Date: Thu Apr 16 02:24:40 2015
New Revision: 281582
URL: https://svnweb.freebsd.org/changeset/base/281582

Log:
  Remove extra flags from r250462.
  
  MFC after:	1 week

Modified:
  head/usr.bin/lockf/lockf.c

Modified: head/usr.bin/lockf/lockf.c
==============================================================================
--- head/usr.bin/lockf/lockf.c	Thu Apr 16 01:47:05 2015	(r281581)
+++ head/usr.bin/lockf/lockf.c	Thu Apr 16 02:24:40 2015	(r281582)
@@ -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);


More information about the svn-src-head mailing list