summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalex <halex@openbsd.org>2020-11-23 06:21:52 +0000
committerhalex <halex@openbsd.org>2020-11-23 06:21:52 +0000
commit286202ce255259752b70c6ad4ed2a23302981646 (patch)
tree751bb810fb2ac0498259b27027a1f04ed35487ed
parentwhen loading PKCS#11 keys, include the key fingerprints and provider/slot (diff)
downloadwireguard-openbsd-286202ce255259752b70c6ad4ed2a23302981646.tar.xz
wireguard-openbsd-286202ce255259752b70c6ad4ed2a23302981646.zip
The -exec primary is terminated by either ';' or '+', but the latter
only if immediately following a '{}' placeholder. Slightly modify the error message to indicate so. Brought up by and discussed with Paul de Weerd, thanks! ok millert@
-rw-r--r--usr.bin/find/function.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 3d7f4963b1f..e74714c6b76 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: function.c,v 1.49 2020/04/09 15:07:49 jca Exp $ */
+/* $OpenBSD: function.c,v 1.50 2020/11/23 06:21:52 halex Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -564,7 +564,7 @@ c_exec(char *unused, char ***argvp, int isok)
*/
for (ap = argv = *argvp, brace = 0;; ++ap) {
if (!*ap)
- errx(1, "%s: no terminating \";\" or \"+\"",
+ errx(1, "%s: no terminating \";\" or \"{} +\"",
isok ? "-ok" : "-exec");
lastbrace = brace;
brace = 0;