It seems that I'm meant to be using the helper function here, not the struct
authorAndrew Bartlett <abartlet@samba.org>
Fri, 18 Oct 2002 22:27:55 +0000 (22:27 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 18 Oct 2002 22:27:55 +0000 (22:27 +0000)
directly...

Andrew Bartlett
(This used to be commit 0abeb8725e8ea53a468d6004457bb7fa89a0f8b2)

source3/lib/debug.c

index f4f3ee2f9f94c9ac7f28d6b7385286d0a42f58ce..483db71b852424dbfff9d058aa93c22cd3788260 100644 (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 */
        }