Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
d0fc9984
Commit
d0fc9984
authored
May 13, 2006
by
Pierangelo Masarati
Browse files
split lines in additional info (ITS
#4543
)
parent
25f81a48
Changes
1
Hide whitespace changes
Inline
Side-by-side
clients/tools/ldapsearch.c
View file @
d0fc9984
...
...
@@ -1523,12 +1523,27 @@ static int print_result(
if
(
text
)
{
if
(
*
text
)
{
if
(
!
ldif
)
{
tool_write_ldif
(
LDIF_PUT_TEXT
,
"text"
,
text
,
strlen
(
text
)
);
}
else
{
fprintf
(
stderr
,
_
(
"Additional information: %s
\n
"
),
text
);
}
if
(
!
ldif
)
{
if
(
err
==
LDAP_PARTIAL_RESULTS
)
{
char
*
line
;
for
(
line
=
text
;
line
!=
NULL
;
)
{
char
*
next
=
strchr
(
line
,
'\n'
);
tool_write_ldif
(
LDIF_PUT_TEXT
,
"text"
,
line
,
next
?
next
-
line
:
strlen
(
line
)
);
line
=
next
?
next
+
1
:
NULL
;
}
}
else
{
tool_write_ldif
(
LDIF_PUT_TEXT
,
"text"
,
text
,
strlen
(
text
)
);
}
}
else
{
fprintf
(
stderr
,
_
(
"Additional information: %s
\n
"
),
text
);
}
}
ber_memfree
(
text
);
...
...
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