summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-07-23 13:17:24 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-07-23 13:17:24 -0700
commita213dd1c48581294fc967e7198d78ca270c6ae46 (patch)
treea21453b86a7b48eb822fd44e01007d0d9d0fc1ac
parent9a9100e3f7d34d1e7589e3e93e6a27da9666d3da (diff)
downloadvyatta-cfg-a213dd1c48581294fc967e7198d78ca270c6ae46.tar.gz
vyatta-cfg-a213dd1c48581294fc967e7198d78ca270c6ae46.zip
allow commit hook commands to write to stdout.
-rw-r--r--src/commit2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commit2.c b/src/commit2.c
index e3cc3df..05b3d9d 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -368,6 +368,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) {