svn commit: r281897 - stable/9/usr.bin/lockf

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


Author: bdrewery
Date: Thu Apr 23 15:25:22 2015
New Revision: 281897
URL: https://svnweb.freebsd.org/changeset/base/281897

Log:
  MFC r281582:
  
    Remove extra flags from r250462.

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

Modified: stable/9/usr.bin/lockf/lockf.c
==============================================================================
--- stable/9/usr.bin/lockf/lockf.c	Thu Apr 23 15:24:33 2015	(r281896)
+++ stable/9/usr.bin/lockf/lockf.c	Thu Apr 23 15:25:22 2015	(r281897)
@@ -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