summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2020-11-23 06:21:53 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2020-11-23 06:21:53 +0000
commitfcf23ae715af00a1d452ad792ef4c1c261765c79 (patch)
tree6df2a73a1ccabfce92779d2bf2cd77f98c25a372
parentca413d42afce3a793ee622a54d8df4bc484bea62 (diff)
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;