mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5922 - disable meter for non-default debug settings
This commit is contained in:
parent
e780309a0c
commit
f719c364c5
@ -126,8 +126,12 @@ slapadd( int argc, char **argv )
|
||||
}
|
||||
|
||||
if ( enable_meter
|
||||
&& !fstat ( fileno ( ldiffp->fp ), &stat_buf )
|
||||
&& S_ISREG(stat_buf.st_mode) ) {
|
||||
#ifdef LDAP_DEBUG
|
||||
/* tools default to "none" */
|
||||
&& slap_debug == LDAP_DEBUG_NONE
|
||||
#endif
|
||||
&& !fstat ( fileno ( ldiffp->fp ), &stat_buf )
|
||||
&& S_ISREG(stat_buf.st_mode) ) {
|
||||
enable_meter = !lutil_meter_open(
|
||||
&meter,
|
||||
&lutil_meter_text_display,
|
||||
|
Loading…
Reference in New Issue
Block a user