dovecot-2.0-pigeonhole: Sieve tools: don't try to close stdout.
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Mon Aug 2 16:19:12 EEST 2010
details: http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/f35b814f2975
changeset: 1350:f35b814f2975
user: Stephan Bosch <stephan at rename-it.nl>
date: Mon Aug 02 15:18:51 2010 +0200
description:
Sieve tools: don't try to close stdout.
diffstat:
src/lib-sieve-tool/sieve-tool.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r bf0455cc29c9 -r f35b814f2975 src/lib-sieve-tool/sieve-tool.c
--- a/src/lib-sieve-tool/sieve-tool.c Mon Aug 02 15:00:00 2010 +0200
+++ b/src/lib-sieve-tool/sieve-tool.c Mon Aug 02 15:18:51 2010 +0200
@@ -452,15 +452,15 @@
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;
}
More information about the dovecot-cvs
mailing list