svn commit: r281896 - stable/10/usr.bin/lockf

Bryan Drewery bdrewery at FreeBSD.org
Thu Apr 23 15:24:34 UTC 2015


Author: bdrewery
Date: Thu Apr 23 15:24:33 2015
New Revision: 281896
URL: https://svnweb.freebsd.org/changeset/base/281896

Log:
  MFC r281582:
  
    Remove extra flags from r250462.

Modified:
  stable/10/usr.bin/lockf/lockf.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/lockf/lockf.c
==============================================================================
--- stable/10/usr.bin/lockf/lockf.c	Thu Apr 23 15:21:47 2015	(r281895)
+++ stable/10/usr.bin/lockf/lockf.c	Thu Apr 23 15:24:33 2015	(r281896)
@@ -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-all mailing list