From 4e47272b6b3ef3b1b903ecee25b34ce3897d064b Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 3 Apr 2003 18:54:16 +0000 Subject: [PATCH] Don't require a file if CLEAR is set [did not work before because we could have the descend flag too] --- sys/kern/kern_ktrace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 962c43a4f545..f27af7250f61 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_ktrace.c,v 1.68 2003/02/23 14:37:34 pk Exp $ */ +/* $NetBSD: kern_ktrace.c,v 1.69 2003/04/03 18:54:16 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.68 2003/02/23 14:37:34 pk Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.69 2003/04/03 18:54:16 christos Exp $"); #include "opt_ktrace.h" #include "opt_compat_mach.h" @@ -536,7 +536,7 @@ sys_ktrace(l, v, retval) ops = KTROP(ops) | (ops & KTRFLAG_DESCEND); curp->p_traceflag |= KTRFAC_ACTIVE; - if (ops != KTROP_CLEAR) { + if ((ops & KTROP_CLEAR) == 0) { /* * an operation which requires a file argument. */