1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Merge from HEAD - baseless parinoia about never having a closed dbf (the debug

file pointer).

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent f79324f730
commit c8a809a2a8

View File

@ -556,6 +556,7 @@ BOOL reopen_logs( void )
pstring fname;
mode_t oldumask;
XFILE *new_dbf = NULL;
XFILE *old_dbf = NULL;
BOOL ret = True;
if (stdout_logging)
@ -585,9 +586,10 @@ BOOL reopen_logs( void )
ret = False;
} else {
x_setbuf(new_dbf, NULL);
if (dbf)
(void) x_fclose(dbf);
old_dbf = dbf;
dbf = new_dbf;
if (old_dbf)
(void) x_fclose(old_dbf);
}
/* Fix from klausr@ITAP.Physik.Uni-Stuttgart.De