diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-29 15:55:58 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-29 15:55:58 -0700 |
commit | 386653f4d9af2cbb1124aaba76ce2873e94cfd1f (patch) | |
tree | f56f0224f8b23992bba0038fbf59eea22980726f /src/commit.c | |
parent | 650699ea3d06e36390bd06a848ce493827c02e1e (diff) | |
download | vyatta-cfg-386653f4d9af2cbb1124aaba76ce2873e94cfd1f.tar.gz vyatta-cfg-386653f4d9af2cbb1124aaba76ce2873e94cfd1f.zip |
redirect output by default
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index a136b58..a8edbaf 100644 --- a/src/commit.c +++ b/src/commit.c @@ -257,7 +257,11 @@ int main(int argc, char **argv) struct stat statbuf; int st; boolean update_pending = FALSE; - + + if (initialize_output() == -1) { + exit(-1); + } + set_in_commit(TRUE); dump_log( argc, argv); init_paths(TRUE); |