Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/rndctl rndctl(8): Take omitted name/type as empty devic...
details: https://anonhg.NetBSD.org/src/rev/f1a53568353b
branches: trunk
changeset: 374226:f1a53568353b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 11 13:17:32 2023 +0000
description:
rndctl(8): Take omitted name/type as empty device name.
This can now be used to change flags for all sources at once.
XXX pullup-10
diffstat:
sbin/rndctl/rndctl.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r c132129ddf6a -r f1a53568353b sbin/rndctl/rndctl.c
--- a/sbin/rndctl/rndctl.c Tue Apr 11 13:11:01 2023 +0000
+++ b/sbin/rndctl/rndctl.c Tue Apr 11 13:17:32 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rndctl.c,v 1.40 2021/04/04 13:37:17 nia Exp $ */
+/* $NetBSD: rndctl.c,v 1.41 2023/04/11 13:17:32 riastradh Exp $ */
/*-
* Copyright (c) 1997 Michael Graff.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rndctl.c,v 1.40 2021/04/04 13:37:17 nia Exp $");
+__RCSID("$NetBSD: rndctl.c,v 1.41 2023/04/11 13:17:32 riastradh Exp $");
#endif
#include <sys/param.h>
@@ -570,7 +570,7 @@ main(int argc, char **argv)
rndctl_t rctl;
int ch, cmd, lflag, mflag, sflag;
u_int32_t type;
- char name[16];
+ char name[16] = "";
const char *filename = NULL;
if (SHA3_Selftest() != 0)
@@ -695,12 +695,6 @@ main(int argc, char **argv)
usage();
/*
- * If not listing, we need a device name or a type.
- */
- if (lflag == 0 && cmd == 0 && sflag == 0)
- usage();
-
- /*
* Modify request.
*/
if (mflag != 0) {
Home |
Main Index |
Thread Index |
Old Index