summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-10-18 22:27:55 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-10-18 22:27:55 +0000
commitd00d56faeaf92d0f641b73e837d6a8512cd47260 (patch)
treec6465fb5a5e2898fc2f17bbdd05da9d88c2ec5fb
parente9368b1d20bd64c7450851f458a3e13ee446e025 (diff)
downloadsamba-d00d56faeaf92d0f641b73e837d6a8512cd47260.tar.gz
samba-d00d56faeaf92d0f641b73e837d6a8512cd47260.tar.bz2
samba-d00d56faeaf92d0f641b73e837d6a8512cd47260.zip
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)
-rw-r--r--source3/lib/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index f4f3ee2f9f..483db71b85 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -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 */
}