summaryrefslogtreecommitdiffabout
path: root/src/comp.c
authorSergey Poznyakoff <gray@gnu.org>2019-06-06 04:21:43 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-06-06 05:24:28 (GMT)
commitb220b5a367469c571358c34ea0df813522e99485 (patch) (side-by-side diff)
tree600e8f26555a359b9d5297b1d566717a1ec78182 /src/comp.c
parent44efb0cda486e2614603e6dd78b0c93407f63c3b (diff)
downloadpies-b220b5a367469c571358c34ea0df813522e99485.tar.gz
pies-b220b5a367469c571358c34ea0df813522e99485.tar.bz2
Update the grecs submodule
* configure.ac (GRECS_SETUP): Request the tree-api * grecs: Pull a0c096190f * lib/envop.c (environ_set): Call wordsplit_free unconditionally. * lib/grecsasrt.c (assert_grecs_value_type) (assert_scalar_stmt): Remove. (conf_callback_url): Switch to tree-api. * lib/grecsasrt.h: Likewise. * src/acl.c: Rewrite grecs callbacks in the tree API style. Use grecs assertions. * src/acl.h: Likewise. * src/meta1parse.c: Likewise. * src/pies.c: Likewise. * src/piesctl.c: Likewise. * src/comp.c (component_finish): Check whether the "command" statement was used.
Diffstat (limited to 'src/comp.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/comp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c
index d030979..d9e7966 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -736,6 +736,13 @@ component_verify (struct component *comp, grecs_locus_t *locus)
void
component_finish (struct component *comp, grecs_locus_t *locus)
{
+ if (!comp->command)
+ {
+ grecs_error (locus, 0, "%s", _("no 'command' statement"));
+ component_free (comp);
+ return;
+ }
+
if (comp->flags & CF_SHELL)
{
comp->argc = 3;

Return to:

Send suggestions and report system problems to the System administrator.