diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 3f7dae762de0..c4772f691397 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -6016,7 +6016,8 @@ static int filt_fsevent(struct knote *kn, long hint) { - kn->kn_fflags |= hint; + kn->kn_fflags |= kn->kn_sfflags & hint; + return (kn->kn_fflags != 0); }