dovecot-2.2: lib: Use /dev/zero instead of /dev/stderr in test-i...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Thu May 14 20:51:13 UTC 2015
    
    
  
details:   http://hg.dovecot.org/dovecot-2.2/rev/91bbd6753689
changeset: 18693:91bbd6753689
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 14 23:49:12 2015 +0300
description:
lib: Use /dev/zero instead of /dev/stderr in test-istream-unix unit test
Some distros don't seem to allow opening stderr.
diffstat:
 src/lib/test-istream-unix.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 4c4eff229426 -r 91bbd6753689 src/lib/test-istream-unix.c
--- a/src/lib/test-istream-unix.c	Thu May 14 21:44:50 2015 +0300
+++ b/src/lib/test-istream-unix.c	Thu May 14 23:49:12 2015 +0300
@@ -166,8 +166,8 @@
 	test_begin("istream unix");
 	if ((send_fd = open("/dev/null", O_RDONLY)) == -1)
 		i_fatal("open(/dev/null) failed: %m");
-	if ((send_fd2 = open("/dev/stderr", O_WRONLY)) == -1)
-		i_fatal("open(/dev/stderr) failed: %m");
+	if ((send_fd2 = open("/dev/zero", O_RDONLY)) == -1)
+		i_fatal("open(/dev/zero) failed: %m");
 	if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0)
 		i_fatal("socketpair() failed: %m");
 	switch (fork()) {
    
    
More information about the dovecot-cvs
mailing list