summaryrefslogtreecommitdiffabout
path: root/src/comp.c
Side-by-side diff
Diffstat (limited to 'src/comp.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/comp.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/comp.c b/src/comp.c
index 52913ac..851ce5b 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -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;
}

Return to:

Send suggestions and report system problems to the System administrator.