Commit f719c364 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#5922 - disable meter for non-default debug settings

parent e780309a
...@@ -126,6 +126,10 @@ slapadd( int argc, char **argv ) ...@@ -126,6 +126,10 @@ slapadd( int argc, char **argv )
} }
if ( enable_meter if ( enable_meter
#ifdef LDAP_DEBUG
/* tools default to "none" */
&& slap_debug == LDAP_DEBUG_NONE
#endif
&& !fstat ( fileno ( ldiffp->fp ), &stat_buf ) && !fstat ( fileno ( ldiffp->fp ), &stat_buf )
&& S_ISREG(stat_buf.st_mode) ) { && S_ISREG(stat_buf.st_mode) ) {
enable_meter = !lutil_meter_open( enable_meter = !lutil_meter_open(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment