diff options
author | 2008-08-20 12:08:04 +0000 | |
---|---|---|
committer | 2008-08-20 12:08:04 +0000 | |
commit | 17a84e5db53fdb574a945b798e780bd316eeb7d9 (patch) | |
tree | 5823f8d21bf61f3cdf56ec0023de4a8c5d0aa518 | |
parent | Regression tests for gzip(1): (diff) | |
download | wireguard-openbsd-17a84e5db53fdb574a945b798e780bd316eeb7d9.tar.xz wireguard-openbsd-17a84e5db53fdb574a945b798e780bd316eeb7d9.zip |
Return EINVAL instead of '1' for invalid kq filters.
From NetBSD;
OK art@, blambert@
-rw-r--r-- | sys/nfs/nfs_kq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_kq.c b/sys/nfs/nfs_kq.c index 4f2f63de097..bf98a6056cc 100644 --- a/sys/nfs/nfs_kq.c +++ b/sys/nfs/nfs_kq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_kq.c,v 1.12 2008/06/26 05:42:20 ray Exp $ */ +/* $OpenBSD: nfs_kq.c,v 1.13 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; |