From fd8493043649025c2af8663a2fdd96d5372d6071 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Mon, 2 Aug 2010 15:18:51 +0200
Subject: [PATCH] Sieve tools: don't try to close stdout.

---
 src/lib-sieve-tool/sieve-tool.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib-sieve-tool/sieve-tool.c b/src/lib-sieve-tool/sieve-tool.c
index fe4e2f187..5198e8136 100644
--- a/src/lib-sieve-tool/sieve-tool.c
+++ b/src/lib-sieve-tool/sieve-tool.c
@@ -452,15 +452,15 @@ struct ostream *sieve_tool_open_output_stream(const char *filename)
 	int fd;
 
 	if ( strcmp(filename, "-") == 0 ) 
-		outstream = o_stream_create_fd(1, 0, TRUE);
+		outstream = o_stream_create_fd(1, 0, FALSE);
 	else {
 		if ( (fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0600)) < 0 ) {
 			i_fatal("failed to open file for writing: %m");
 		}
-		
+
 		outstream = o_stream_create_fd(fd, 0, TRUE);
 	}
-	
+
 	return outstream;
 }
 
-- 
GitLab