if we don't have an errsock, dup stdout to stderr (this would normally

be done by inetd, but not by mini_inetd).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14234 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2004-09-21 11:19:34 +00:00
parent 44cb295753
commit 65d153a293

View File

@@ -856,6 +856,9 @@ doit (void)
if (dup2 (errsock, STDERR_FILENO) < 0)
fatal (s, "dup2", "Cannot dup stderr.");
close (errsock);
} else {
if (dup2 (STDOUT_FILENO, STDERR_FILENO) < 0)
fatal (s, "dup2", "Cannot dup stderr.");
}
setup_environment (&env, pwd);