summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2009-12-01 16:50:33 -0800
committerMichael Larson <slioch@slioch.vyatta.com>2009-12-01 16:50:33 -0800
commitc592d618c029609b7080100de639f4ccab1f680a (patch)
treeef04aa27289d624444b7dcee19ff6af03b1d96b5
parentfffa627d6ae0758a6de978c52bf508e008cef58d (diff)
downloadvyatta-cfg-c592d618c029609b7080100de639f4ccab1f680a.tar.gz
vyatta-cfg-c592d618c029609b7080100de639f4ccab1f680a.zip
remove .changes file after work was done by commit
-rw-r--r--src/commit2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commit2.c b/src/commit2.c
index b8f2542..788ef09 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -338,6 +338,10 @@ main(int argc, char** argv)
if (fp_changes != NULL) {
fclose(fp_changes);
}
+
+ //remove tmp changes file as all the work is now done
+ unlink("/tmp/.changes");
+
exit (no_errors == FALSE);
}