From b818d5299a5f3dcc8fdca35bb38afe8e94ba4043 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 9 Jun 2016 03:19:34 +0000 Subject: bugfix: check for missing } in s6-rc-compile (thanks smaeul) --- src/s6-rc/s6-rc-compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index e29bbfb..7248cd8 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -325,7 +325,8 @@ static void read_script (before_t *be, int dirfd, char const *srcdir, char const r = el_parse_from_buffer(&keep, &b) ; switch (r) { - case -3 : strerr_dief7x(1, "syntax error in ", srcdir, "/", name, "/", script, ": missing }"); + case -4 : strerr_dief8x(1, "syntax error in ", srcdir, "/", name, "/", script, ": unmatched ", "}"); + case -3 : strerr_dief8x(1, "syntax error in ", srcdir, "/", name, "/", script, ": unmatched ", "{"); case -2 : strerr_dief6x(1, "syntax error in ", srcdir, "/", name, "/", script) ; case -1 : strerr_diefu6sys(111, "parse ", srcdir, "/", name, "/", script) ; } -- cgit v1.2.3