diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-06-19 14:10:47 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-06-19 14:10:47 -0700 |
commit | f625070dec4cb848d2348aeaa66c03713a4a89ee (patch) | |
tree | f38afd826c7bf1438132f7b26edad8c130cea620 /src/commit2.c | |
parent | f36b172142f6a52d6898ad4b32e58c4f5bb183da (diff) | |
download | vyatta-cfg-f625070dec4cb848d2348aeaa66c03713a4a89ee.tar.gz vyatta-cfg-f625070dec4cb848d2348aeaa66c03713a4a89ee.zip |
fix -a option for displaying actions when commit or syntax check is present in the node.def. This change only affects display of nodes when -a option is used.
Diffstat (limited to 'src/commit2.c')
-rw-r--r-- | src/commit2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit2.c b/src/commit2.c index fa03314..4086d39 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -408,7 +408,8 @@ process_func(GNode *node, gpointer data) status = execute_list(c->_def.actions[result->_action].vtw_list_head,&c->_def); } else { - if (c->_def.actions[syntax_act].vtw_list_head && + if ((result->_action == syntax_act || result->_action == commit_act) && + c->_def.actions[syntax_act].vtw_list_head && c->_def.actions[syntax_act].vtw_list_head->vtw_node_aux == 1) { fprintf(out_stream,"commit\t:\t%s\n",d->_path); } |