Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
f5608df7
Commit
f5608df7
authored
Jun 10, 2005
by
Howard Chu
Browse files
Import ITS#3764 from HEAD
parent
75227eef
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
f5608df7
...
...
@@ -11,6 +11,7 @@ OpenLDAP 2.2.27 Engineering
Fixed ACL dn=* <what> clause
Fixed ACL val default style parsing crasher (ITS#3700)
Disabled slapd broken undocumented configuration directive
Fixed slapcat unclean exits (ITS#3764)
Fixed libldap sasl connection assert (ITS#3278)
Build Environment
Improved thread set stack size support (ITS#3691)
...
...
servers/slapd/slapcat.c
View file @
f5608df7
...
...
@@ -31,6 +31,14 @@
#include
"slapcommon.h"
static
int
gotsig
;
static
RETSIGTYPE
slapcat_sig
(
int
sig
)
{
gotsig
=
1
;
}
int
slapcat
(
int
argc
,
char
**
argv
)
{
...
...
@@ -41,6 +49,15 @@ slapcat( int argc, char **argv )
slap_tool_init
(
progname
,
SLAPCAT
,
argc
,
argv
);
#ifdef SIGPIPE
(
void
)
SIGNAL
(
SIGPIPE
,
slapcat_sig
);
#endif
#ifdef SIGHUP
(
void
)
SIGNAL
(
SIGHUP
,
slapcat_sig
);
#endif
(
void
)
SIGNAL
(
SIGINT
,
slapcat_sig
);
(
void
)
SIGNAL
(
SIGTERM
,
slapcat_sig
);
if
(
!
be
->
be_entry_open
||
!
be
->
be_entry_close
||
!
be
->
be_entry_first
||
...
...
@@ -58,15 +75,19 @@ slapcat( int argc, char **argv )
exit
(
EXIT_FAILURE
);
}
op
.
o_bd
=
be
;
for
(
id
=
be
->
be_entry_first
(
be
);
id
!=
NOID
;
id
=
be
->
be_entry_next
(
be
)
)
{
char
*
data
;
int
len
;
Entry
*
e
=
be
->
be_entry_get
(
be
,
id
);
op
.
o_bd
=
be
;
Entry
*
e
;
if
(
gotsig
)
break
;
e
=
be
->
be_entry_get
(
be
,
id
);
if
(
e
==
NULL
)
{
printf
(
"# no data for entry id=%08lx
\n\n
"
,
(
long
)
id
);
rc
=
EXIT_FAILURE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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