summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-02-28 00:12:15 +0000
committerchristos <christos@NetBSD.org>2011-02-28 00:12:15 +0000
commit248d11f93cb6948d4865636e10a4e2d2e8be7abe (patch)
tree25e28209bf26398e4c5ccad6036a957edf260878 /sys
parent3a87cd06ccc8e3d4a766f4d3944eda37cecc53e2 (diff)
don't depend on F_OK being 0.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 1e9dadcb594..a4af5167d05 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -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 @@ sys_access(struct lwp *l, const struct sys_access_args *uap, register_t *retval)
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;
}