Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
f719c364
Commit
f719c364
authored
Feb 05, 2009
by
Howard Chu
Browse files
ITS
#5922
- disable meter for non-default debug settings
parent
e780309a
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/slapadd.c
View file @
f719c364
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment