Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/sysctl no -A or -a with -q
details: https://anonhg.NetBSD.org/src/rev/49fab0972bca
branches: trunk
changeset: 767910:49fab0972bca
user: christos <christos%NetBSD.org@localhost>
date: Wed Aug 03 01:58:30 2011 +0000
description:
no -A or -a with -q
diffstat:
sbin/sysctl/sysctl.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 48e3a64e145a -r 49fab0972bca sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c Wed Aug 03 01:47:40 2011 +0000
+++ b/sbin/sysctl/sysctl.c Wed Aug 03 01:58:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.135 2011/08/03 01:47:40 christos Exp $ */
+/* $NetBSD: sysctl.c,v 1.136 2011/08/03 01:58:30 christos 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.135 2011/08/03 01:47:40 christos Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.136 2011/08/03 01:58:30 christos Exp $");
#endif
#endif /* not lint */
@@ -325,8 +325,10 @@
usage();
/* if ((xflag || rflag) && wflag)
usage(); */
- /* if (aflag && Mflag)
+ /* if (aflag && (Mflag || qflag))
usage(); */
+ if ((aflag || Aflag) && qflag)
+ usage();
if ((Aflag || Mflag || dflag) && argc == 0 && fn == NULL)
aflag = 1;
Home |
Main Index |
Thread Index |
Old Index