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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to