diff options
Diffstat (limited to 'source3/lib/debug.c')
-rw-r--r-- | source3/lib/debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index e851fd20e9..1986d6cfca 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -746,7 +746,9 @@ void check_log_size( void ) maxlog = lp_max_log_size() * 1024; - if( sys_fstat( x_fileno( dbf ), &st ) == 0 && st.st_ex_size > maxlog ) { + if(sys_fstat(x_fileno(dbf), &st, + lp_fake_dir_create_times()) == 0 + && st.st_ex_size > maxlog ) { (void)reopen_logs(); if( dbf && get_file_size( debugf ) > maxlog ) { char *name = NULL; |