summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2019-12-27 16:56:40 +0000
committerbenno <benno@openbsd.org>2019-12-27 16:56:40 +0000
commitf142a2fe4ac815491138ac0d34e198fcb7afa071 (patch)
tree45f1d6e9ec1d94c04dcc0c6ef2e5880874651193
parentFix ifconfig WPA key installation with max allowed length SSIDs. (diff)
downloadwireguard-openbsd-f142a2fe4ac815491138ac0d34e198fcb7afa071.tar.xz
wireguard-openbsd-f142a2fe4ac815491138ac0d34e198fcb7afa071.zip
make -n stop after parsing the config.
make -nv print the parsed configuration, then stop. ok sthen@, seems better deraadt@
-rw-r--r--usr.sbin/acme-client/parse.y10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/acme-client/parse.y b/usr.sbin/acme-client/parse.y
index 20818328d92..98f45a382ec 100644
--- a/usr.sbin/acme-client/parse.y
+++ b/usr.sbin/acme-client/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.38 2019/06/17 12:42:52 florian Exp $ */
+/* $OpenBSD: parse.y,v 1.39 2019/12/27 16:56:40 benno Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -811,8 +811,12 @@ parse_config(const char *filename, int opts)
return NULL;
}
- if (opts & ACME_OPT_CHECK)
- print_config(conf);
+ if (opts & ACME_OPT_CHECK) {
+ if (opts & ACME_OPT_VERBOSE)
+ print_config(conf);
+ exit(0);
+ }
+
return conf;
}