diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commit/commit-algorithm.cpp | 4 | ||||
-rw-r--r-- | src/common/unionfs.c | 24 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp index ca0c10f..e5bd885 100644 --- a/src/commit/commit-algorithm.cpp +++ b/src/commit/commit-algorithm.cpp @@ -787,7 +787,7 @@ _execute_hooks(CommitHook hook) cmd += "'"; // not checking return status restore_output(); - system(cmd.c_str()); + if(system(cmd.c_str())); redirect_output(); } @@ -1273,7 +1273,7 @@ commit::doCommit(Cstore& cs, CfgNode& cfg1, CfgNode& cfg2) if (s > 0) { // notify other users in config mode - system("/opt/vyatta/sbin/vyatta-cfg-notify"); + if(system("/opt/vyatta/sbin/vyatta-cfg-notify")); } if (!cs.commitConfig(proot)) { diff --git a/src/common/unionfs.c b/src/common/unionfs.c index dee7cf1..3a47276 100644 --- a/src/common/unionfs.c +++ b/src/common/unionfs.c @@ -810,7 +810,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy, fflush(NULL); } if (test_mode == FALSE) { - system(command); + if(system(command)); } //mkdir temp merge @@ -821,7 +821,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy, fflush(NULL); } if (test_mode == FALSE) { - system(command); + if(system(command)); } @@ -834,7 +834,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy, fflush(NULL); } if (test_mode == FALSE) { - system(command); + if(system(command)); } // unmount the session dir @@ -850,7 +850,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy, fflush(NULL); } if (test_mode == FALSE) { - system(command); + if(system(command)); } sprintf(command, format1point1, tbuf_root, abuf_root); if (g_debug) { @@ -859,7 +859,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy, fflush(NULL); } if (test_mode == FALSE) { - system(command); + if(system(command)); } } else { @@ -948,7 +948,7 @@ common_commit_clean_temp_config(GNode *root_node, boolean test_mode) fflush(NULL); } if (test_mode == FALSE) { - system(command); + if(system(command)); } if (test_mode == FALSE) { @@ -956,7 +956,7 @@ common_commit_clean_temp_config(GNode *root_node, boolean test_mode) } /* notify other users in config mode */ - system("/opt/vyatta/sbin/vyatta-cfg-notify"); + if(system("/opt/vyatta/sbin/vyatta-cfg-notify")); free(command); } @@ -1339,7 +1339,7 @@ delete_func(GNode *node, gpointer data) fflush(NULL); } if (sd->_test_mode == FALSE) { - system(command); + if(system(command)); } } @@ -1359,7 +1359,7 @@ delete_func(GNode *node, gpointer data) fflush(NULL); } if (sd->_test_mode == FALSE) { - system(command); + if(system(command)); } //if delete then remove entry in active configuration! sprintf(command,format_force_delete,sd->_dst,path,sd->_dst,path); @@ -1369,7 +1369,7 @@ delete_func(GNode *node, gpointer data) fflush(NULL); } if (sd->_test_mode == FALSE) { - system(command); + if(system(command)); } } free(command); @@ -1416,7 +1416,7 @@ delete_wh_func(GNode *node, gpointer data) fflush(NULL); } if (sd->_test_mode == FALSE) { - system(command); + if(system(command)); } } @@ -1435,7 +1435,7 @@ delete_wh_func(GNode *node, gpointer data) fflush(NULL); } if (sd->_test_mode == FALSE) { - system(command); + if(system(command)); } } } |