summaryrefslogtreecommitdiff
path: root/src/commit2.c
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-03-30 11:08:46 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-03-30 11:08:46 -0700
commit895344795add3154e041dfdfd98a1496f8695f34 (patch)
tree0f8ea875587569b046d7d19a2a904180aa9f89c8 /src/commit2.c
parent548a7318a389e09093c20232bea51fadd42209dc (diff)
downloadvyatta-cfg-895344795add3154e041dfdfd98a1496f8695f34.tar.gz
vyatta-cfg-895344795add3154e041dfdfd98a1496f8695f34.zip
propagate commit failure error to commit return status.
Diffstat (limited to 'src/commit2.c')
-rw-r--r--src/commit2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit2.c b/src/commit2.c
index 0dc85eb..3d45e16 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -269,7 +269,8 @@ main(int argc, char** argv)
if (g_debug) {
printf("DONE\n");
}
- exit(0);
+
+ exit (no_errors == FALSE);
}
/**