summaryrefslogtreecommitdiff
path: root/src/commit
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit')
-rw-r--r--src/commit/commit-algorithm.cpp4
1 files changed, 2 insertions, 2 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)) {