diff options
author | Tim Potter <tpot@samba.org> | 2002-07-20 21:56:26 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-07-20 21:56:26 +0000 |
commit | 27211c55e2d8e474cef0abe80847a4387aa688e3 (patch) | |
tree | 492041f8027bc4eb4a1e3668ab3cce865c22efa7 /source3/lib/debug.c | |
parent | 9d983e3f3a48df33b05cd1aa163a5911b6e2d90c (diff) | |
download | samba-27211c55e2d8e474cef0abe80847a4387aa688e3.tar.gz samba-27211c55e2d8e474cef0abe80847a4387aa688e3.tar.bz2 samba-27211c55e2d8e474cef0abe80847a4387aa688e3.zip |
Don't try and sys_dup2(dbf->fd) if dbf == NULL.
(This used to be commit 0fd155a06c24ec5d1310213baf7a4230242498be)
Diffstat (limited to 'source3/lib/debug.c')
-rw-r--r-- | source3/lib/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index c43a98f4fa..be5f66a562 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 (sys_dup2(dbf->fd, 2) == -1) { + if (dbf && sys_dup2(dbf->fd, 2) == -1) { close_low_fds(True); /* Close stderr too, if dup2 can't point it at the logfile */ } |