Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern don't depend on F_OK being 0.
details: https://anonhg.NetBSD.org/src/rev/5e13a97bb024
branches: trunk
changeset: 762772:5e13a97bb024
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 28 00:12:15 2011 +0000
description:
don't depend on F_OK being 0.
diffstat:
sys/kern/vfs_syscalls.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 358bbafe25f0 -r 5e13a97bb024 sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c Sun Feb 27 23:28:12 2011 +0000
+++ b/sys/kern/vfs_syscalls.c Mon Feb 28 00:12:15 2011 +0000
@@ -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;
}
Home |
Main Index |
Thread Index |
Old Index