Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/systrace use FNM_LEADING_DIR
details: https://anonhg.NetBSD.org/src/rev/19cc8bfc3fb8
branches: trunk
changeset: 537819:19cc8bfc3fb8
user: provos <provos%NetBSD.org@localhost>
date: Sun Oct 06 03:16:25 2002 +0000
description:
use FNM_LEADING_DIR
diffstat:
bin/systrace/filter.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r 97a43c9dc93a -r 19cc8bfc3fb8 bin/systrace/filter.c
--- a/bin/systrace/filter.c Sun Oct 06 03:15:45 2002 +0000
+++ b/bin/systrace/filter.c Sun Oct 06 03:16:25 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filter.c,v 1.7 2002/10/06 01:28:55 provos Exp $ */
+/* $NetBSD: filter.c,v 1.8 2002/10/06 03:16:25 provos Exp $ */
/* $OpenBSD: filter.c,v 1.16 2002/08/08 21:18:20 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -30,7 +30,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: filter.c,v 1.7 2002/10/06 01:28:55 provos Exp $");
+__RCSID("$NetBSD: filter.c,v 1.8 2002/10/06 03:16:25 provos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -591,11 +591,7 @@
if ((line = intercept_translate_print(tl)) == NULL)
return (0);
-#ifdef __NetBSD__
- res = fnmatch(logic->filterdata, line, FNM_PATHNAME);
-#else
res = fnmatch(logic->filterdata, line, FNM_PATHNAME | FNM_LEADING_DIR);
-#endif
return (res == 0);
}
Home |
Main Index |
Thread Index |
Old Index