summaryrefslogtreecommitdiffabout
path: root/src/meta1parse.c
authorSergey Poznyakoff <gray@gnu.org>2016-03-02 16:33:23 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-03-02 16:47:28 (GMT)
commitc767932556198cb064e7552bea14cc3563a114d0 (patch) (side-by-side diff)
tree15e1ff9d07c07ab3e4a7308804f12ce700c2d7db /src/meta1parse.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/meta1parse.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/meta1parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/meta1parse.c b/src/meta1parse.c
index 4b2fccb..528a80a 100644
--- a/src/meta1parse.c
+++ b/src/meta1parse.c
@@ -295,7 +295,9 @@ meta1_translate_node (struct grecs_node *node)
struct grecs_node *stmt;
size_t len;
int err = 0;
-
+
+ if (node->type != grecs_node_block)
+ return 0;
comp = component_create (node->ident);
for (stmt = node->down; stmt; stmt = stmt->next)
{
@@ -309,7 +311,7 @@ meta1_translate_node (struct grecs_node *node)
}
comp->privs.allgroups = 1;
- comp->dir = META1_QUEUE_DIR ();
+ comp->dir = grecs_strdup (META1_QUEUE_DIR ());
comp->redir[RETR_ERR].type = redir_file;
comp->redir[RETR_ERR].v.file = NULL;
len = 0;

Return to:

Send suggestions and report system problems to the System administrator.