Module Name:    src
Committed By:   christos
Date:           Mon Feb 28 00:12:16 UTC 2011

Modified Files:
        src/sys/kern: vfs_syscalls.c

Log Message:
don't depend on F_OK being 0.


To generate a diff of this commit:
cvs rdiff -u -r1.415 -r1.416 src/sys/kern/vfs_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_syscalls.c
diff -u src/sys/kern/vfs_syscalls.c:1.415 src/sys/kern/vfs_syscalls.c:1.416
--- src/sys/kern/vfs_syscalls.c:1.415	Sun Feb 27 18:06:40 2011
+++ src/sys/kern/vfs_syscalls.c	Sun Feb 27 19:12:15 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_syscalls.c,v 1.415 2011/02/27 23:06:40 dholland Exp $	*/
+/*	$NetBSD: vfs_syscalls.c,v 1.416 2011/02/28 00:12:15 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.415 2011/02/27 23:06:40 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.416 2011/02/28 00:12:15 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -2484,7 +2484,7 @@
 	struct pathbuf *pb;
 	struct nameidata nd;
 
-	if ((SCARG(uap, flags) & ~(R_OK | W_OK | X_OK)) != 0) {
+	if ((SCARG(uap, flags) & ~(F_OK | R_OK | W_OK | X_OK)) != 0) {
 		/* nonsense flags */
 		return EINVAL;
 	}

Reply via email to