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:
parent
e9368b1d20
commit
d00d56faea
@ -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 */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user