diff options
author | Michael <mike@vyatta.com> | 2010-11-19 07:28:53 -0800 |
---|---|---|
committer | Michael <mike@vyatta.com> | 2010-11-19 07:28:53 -0800 |
commit | 2af6ccd492d39fb4f089b8ac7d75ce5934a70b03 (patch) | |
tree | f76c1b010a7e941f76492b0d639c191ef2eaa3a3 | |
parent | a8d9cedfcde6c87e69ebebf2e6d3cca28808d7e8 (diff) | |
download | vyatta-cfg-2af6ccd492d39fb4f089b8ac7d75ce5934a70b03.tar.gz vyatta-cfg-2af6ccd492d39fb4f089b8ac7d75ce5934a70b03.zip |
proper exit on failure.
-rw-r--r-- | src/commit2.c | 2 |
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); } |