diff options
| author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-09 22:40:07 -0700 | 
|---|---|---|
| committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-09 22:40:07 -0700 | 
| commit | f51be17447504aed009f3b31fd6868f02019445d (patch) | |
| tree | 3a82782aa94ad8d760538b00adde68b234b04520 /src/commit2.c | |
| parent | 9597176ac1f7f2ddee37fc78102185e844bca70f (diff) | |
| parent | bd48938b3dc1634c64c6d099ccf5d193d94c4019 (diff) | |
| download | vyatta-cfg-f51be17447504aed009f3b31fd6868f02019445d.tar.gz vyatta-cfg-f51be17447504aed009f3b31fd6868f02019445d.zip | |
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg into jenner
Diffstat (limited to 'src/commit2.c')
| -rw-r--r-- | src/commit2.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/src/commit2.c b/src/commit2.c index 0d77fb6..e6b63fa 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -1,6 +1,7 @@  #include <stdio.h>  #include <stdlib.h>  #include <unistd.h> +#include <syslog.h>  #include <sys/time.h>  #include <glib-2.0/glib.h>  #include "common/common.h" @@ -231,6 +232,9 @@ main(int argc, char** argv)      if (disable_partial_commit == TRUE) {        complete(orig_node_tree, test_mode);      } +    /* +     * Need to add to the following func below to clean up dangling .wh. files +     */      common_commit_clean_temp_config(test_mode);      if (g_debug == TRUE) {        printf("commit2: successful commit, now cleaning up temp directories\n"); @@ -363,6 +367,7 @@ process_func(GNode *node, gpointer data)        }        if (!status) { //EXECUTE_LIST RETURNS FALSE ON FAILURE.... +	syslog(LOG_ERR,"commit error for %s:[%s]\n",ActionNames[result->_action],d->_path);  	if (g_display_error_node) {  	  fprintf(out_stream,"%s:[%s]\n",ActionNames[result->_action],d->_path);  	} | 
