summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-06-09 03:19:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-06-09 03:19:34 +0000
commitb818d5299a5f3dcc8fdca35bb38afe8e94ba4043 (patch)
tree185cef72f68f58bf40e170e27b05c34e14c43616 /src
parent59cde9e742d1fb93e7df96a36ba352bf1cda785d (diff)
downloads6-rc-b818d5299a5f3dcc8fdca35bb38afe8e94ba4043.tar.xz
bugfix: check for missing } in s6-rc-compile (thanks smaeul)
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc-compile.c3
1 files changed, 2 insertions, 1 deletions
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) ;
}