artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92041e7
)
Return EINVAL instead of '1' for invalid kq filters.
author
thib
<thib@openbsd.org>
Wed, 20 Aug 2008 12:08:04 +0000
(12:08 +0000)
committer
thib
<thib@openbsd.org>
Wed, 20 Aug 2008 12:08:04 +0000
(12:08 +0000)
From NetBSD;
OK art@, blambert@
sys/nfs/nfs_kq.c
patch
|
blob
|
history
diff --git
a/sys/nfs/nfs_kq.c
b/sys/nfs/nfs_kq.c
index
4f2f63d
..
bf98a60
100644
(file)
--- a/
sys/nfs/nfs_kq.c
+++ b/
sys/nfs/nfs_kq.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: nfs_kq.c,v 1.1
2 2008/06/26 05:42:20 ray
Exp $ */
+/* $OpenBSD: nfs_kq.c,v 1.1
3 2008/08/20 12:08:04 thib
Exp $ */
/* $NetBSD: nfs_kq.c,v 1.7 2003/10/30 01:43:10 simonb Exp $ */
/*-
@@
-277,7
+277,7
@@
nfs_kqfilter(void *v)
kn->kn_fop = &nfsvnode_filtops;
break;
default:
- return (
1
);
+ return (
EINVAL
);
}
kn->kn_hook = vp;