aboutsummaryrefslogtreecommitdiff
path: root/src/comp.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-03-02 18:33:23 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-03-02 18:47:28 +0200
commitc767932556198cb064e7552bea14cc3563a114d0 (patch)
tree15e1ff9d07c07ab3e4a7308804f12ce700c2d7db /src/comp.c
parent801656d6ae9b6c5cb199b2e53001ecaac41db4ae (diff)
downloadpies-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.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c
index 52913ac..851ce5b 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -661,19 +661,25 @@ component_verify (struct component *comp, grecs_locus_t *locus)
661 { 661 {
662 /* TRANSLATORS: `wait' is a keywords, do not translate. */ 662 /* TRANSLATORS: `wait' is a keywords, do not translate. */
663 COMPERR (grecs_error, "%s", _("wait is useless in this mode")); 663 COMPERR (grecs_error, "%s", _("wait is useless in this mode"));
664 comp->flags &= ~CF_WAIT; 664 comp->flags &= ~CF_WAIT;
665 } 665 }
666 666
667 if (comp->mode != pies_comp_exec 667 switch (comp->mode)
668 && comp->redir[RETR_OUT].type != redir_null) 668 {
669 case pies_comp_accept:
670 case pies_comp_inetd:
671 if (comp->redir[RETR_OUT].type != redir_null)
669 { 672 {
670 COMPERR (grecs_error, 673 COMPERR (grecs_error,
671 "%s", _("stdout redirection invalid in this mode")); 674 "%s", _("stdout redirection invalid in this mode"));
672 comp->redir[RETR_OUT].type = redir_null; 675 comp->redir[RETR_OUT].type = redir_null;
673 } 676 }
677 default:
678 break;
679 }
674 680
675 for (i = RETR_OUT; i <= RETR_ERR; i++) 681 for (i = RETR_OUT; i <= RETR_ERR; i++)
676 { 682 {
677 if (comp->redir[i].type == redir_file 683 if (comp->redir[i].type == redir_file
678 && comp->redir[i].v.file[0] != '/') 684 && comp->redir[i].v.file[0] != '/')
679 { 685 {

Return to:

Send suggestions and report system problems to the System administrator.