Ok - this is the 64 bit widening check in. It changes the configure
[kai/samba.git] / source3 / lib / debug.c
index f5a0eadb96bd9e3e75de888b5e8cb2240e31bd1c..5f6ad5273ad99b4e745d7dec8991f1682b8a74e1 100644 (file)
@@ -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;