diff options
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 f5a0eadb96b..5f6ad5273ad 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -258,7 +258,7 @@ static void check_log_size( void ) if( !dbf || maxlog <= 0 ) return; - if( fstat( fileno( dbf ), &st ) == 0 && st.st_size > maxlog ) + if( sys_fstat( fileno( dbf ), &st ) == 0 && st.st_size > maxlog ) { (void)fclose( dbf ); dbf = NULL; |