1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

It seems that I'm meant to be using the helper function here, not the struct

directly...

Andrew Bartlett
(This used to be commit 0abeb8725e8ea53a468d6004457bb7fa89a0f8b2)
This commit is contained in:
Andrew Bartlett 2002-10-18 22:27:55 +00:00
parent e9368b1d20
commit d00d56faea

View File

@ -603,7 +603,7 @@ BOOL reopen_logs( void )
(void)umask(oldumask);
/* Take over stderr to catch ouput into logs */
if (dbf && sys_dup2(dbf->fd, 2) == -1) {
if (dbf && sys_dup2(x_fileno(dbf), 2) == -1) {
close_low_fds(True); /* Close stderr too, if dup2 can't point it
at the logfile */
}