diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-03-02 18:33:23 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-03-02 18:47:28 +0200 |
commit | c767932556198cb064e7552bea14cc3563a114d0 (patch) | |
tree | 15e1ff9d07c07ab3e4a7308804f12ce700c2d7db /src/comp.c | |
parent | 801656d6ae9b6c5cb199b2e53001ecaac41db4ae (diff) | |
download | pies-c767932556198cb064e7552bea14cc3563a114d0.tar.gz pies-c767932556198cb064e7552bea14cc3563a114d0.tar.bz2 |
Bugfixes
* src/comp.c (component_verify): Fix stdout redirection check.
* src/meta1parse.c (meta1_translate_node): Skip simple statements.
(meta1_translate_node): Allocate comp->dir
* doc/pies.texi: Use @example instead of @smallexample
Diffstat (limited to 'src/comp.c')
-rw-r--r-- | src/comp.c | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -665,9 +665,15 @@ component_verify (struct component *comp, grecs_locus_t *locus) } - - if (comp->mode != pies_comp_exec - && comp->redir[RETR_OUT].type != redir_null) + + switch (comp->mode) { - COMPERR (grecs_error, - "%s", _("stdout redirection invalid in this mode")); - comp->redir[RETR_OUT].type = redir_null; + case pies_comp_accept: + case pies_comp_inetd: + if (comp->redir[RETR_OUT].type != redir_null) + { + COMPERR (grecs_error, + "%s", _("stdout redirection invalid in this mode")); + comp->redir[RETR_OUT].type = redir_null; + } + default: + break; } |