summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-06 12:27:24 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-06 12:27:24 -0800
commitfd32d4dfaafe45c9a7fd4099423de36dd6600ef1 (patch)
tree0241a2cd181d7aa4ef63e10770fef205b4426643
parente302747419ffa34125cd6700070715ecde299467 (diff)
downloadvyatta-cfg-fd32d4dfaafe45c9a7fd4099423de36dd6600ef1.tar.gz
vyatta-cfg-fd32d4dfaafe45c9a7fd4099423de36dd6600ef1.zip
fix for bug 2522: don't show/return error if there's nothing to commit.
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 4820094..3fa77c5 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -274,7 +274,7 @@ int main(int argc, char **argv)
my_free(mod);
if (st < 0 ) {
fprintf(out_stream, "No configuration changes to commit\n");
- bye("No configuration changes to commit\n");
+ return 0;
}
if (get_config_lock() == -1) {