summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <mike@vyatta.com>2010-11-19 07:28:53 -0800
committerMichael <mike@vyatta.com>2010-11-19 07:28:53 -0800
commit2af6ccd492d39fb4f089b8ac7d75ce5934a70b03 (patch)
treef76c1b010a7e941f76492b0d639c191ef2eaa3a3
parenta8d9cedfcde6c87e69ebebf2e6d3cca28808d7e8 (diff)
downloadvyatta-cfg-2af6ccd492d39fb4f089b8ac7d75ce5934a70b03.tar.gz
vyatta-cfg-2af6ccd492d39fb4f089b8ac7d75ce5934a70b03.zip
proper exit on failure.
-rw-r--r--src/commit2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit2.c b/src/commit2.c
index e1119b4..aeb9ce7 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -401,7 +401,7 @@ main(int argc, char** argv)
//remove tmp changes file as all the work is now done
unlink(COMMIT_CHANGES_FILE);
- exit (errors == 2);
+ exit (errors == 2 ? 0 : 1);
}