summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-07-23 13:17:24 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-08-27 11:31:33 -0700
commitfd6bde80731e56d6bd35586ddaaf06536bd9df8f (patch)
tree3510b4a663ed7fde700ce2295a0b94af2058d63e /src
parent6bb4484271ab7985d249978d433a8449857701ca (diff)
downloadvyatta-cfg-fd6bde80731e56d6bd35586ddaaf06536bd9df8f.tar.gz
vyatta-cfg-fd6bde80731e56d6bd35586ddaaf06536bd9df8f.zip
allow commit hook commands to write to stdout.
(cherry picked from commit a213dd1c48581294fc967e7198d78ca270c6ae46)
Diffstat (limited to 'src')
-rw-r--r--src/commit2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commit2.c b/src/commit2.c
index d45b7c0..884d2fe 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -369,6 +369,7 @@ main(int argc, char** argv)
setenv(ENV_COMMIT_STATUS,"FAILURE",1);
}
struct dirent *dirp = NULL;
+ restore_output();
while ((dirp = readdir(dp)) != NULL) {
if (strcmp(dirp->d_name, ".") != 0 &&
strcmp(dirp->d_name, "..") != 0) {