Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/sysctl don't pass add=1 to print_tree() when displaying...
details: https://anonhg.NetBSD.org/src/rev/a6baf4d9fe37
branches: trunk
changeset: 374135:a6baf4d9fe37
user: ryo <ryo%NetBSD.org@localhost>
date: Sun Apr 02 18:11:26 2023 +0000
description:
don't pass add=1 to print_tree() when displaying by specifying nodes.
For example, "sysctl -w kern.mbuf=" had been displayed extra node names in the MIB.
# sysctl -w kern.mbuf=
kern.mbuf.mbuf.msize = 512
kern.mbuf.mbuf.mclbytes = 2048
:
diffstat:
sbin/sysctl/sysctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dcd4dd3abd86 -r a6baf4d9fe37 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c Sun Apr 02 15:06:06 2023 +0000
+++ b/sbin/sysctl/sysctl.c Sun Apr 02 18:11:26 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.163 2021/12/28 16:06:57 christos Exp $ */
+/* $NetBSD: sysctl.c,v 1.164 2023/04/02 18:11:26 ryo Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: sysctl.c,v 1.163 2021/12/28 16:06:57 christos Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.164 2023/04/02 18:11:26 ryo Exp $");
#endif
#endif /* not lint */
@@ -944,7 +944,7 @@ parse(char *l, regex_t *re, size_t *last
/*
* XXX old behavior is to print. should we error instead?
*/
- print_tree(&name[0], namelen, node, CTLTYPE_NODE, 1, re,
+ print_tree(&name[0], namelen, node, CTLTYPE_NODE, 0, re,
lastcompiled);
break;
case CTLTYPE_INT:
Home |
Main Index |
Thread Index |
Old Index