summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-06-19 14:10:47 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-06-19 14:12:44 -0700
commit00512661adcb46f0860438ef5b7a2296cef979b7 (patch)
treef1b10c6cda28d33806b8894b6320c0177aa6aa0e /src
parent02369986d322594e6f90e3c414b6e628dc195938 (diff)
downloadvyatta-cfg-00512661adcb46f0860438ef5b7a2296cef979b7.tar.gz
vyatta-cfg-00512661adcb46f0860438ef5b7a2296cef979b7.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')
-rw-r--r--src/commit2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit2.c b/src/commit2.c
index 6b5dc4d..6d36368 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -398,7 +398,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);
}