Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
f2e6efed
Commit
f2e6efed
authored
Mar 09, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Mar 15, 2021
Browse files
ITS#5768 Avoid extraneous newlines in deref printing
parent
641ecb41
Changes
2
Hide whitespace changes
Inline
Side-by-side
clients/tools/common.c
View file @
f2e6efed
...
...
@@ -2285,7 +2285,6 @@ print_deref( LDAP *ld, LDAPControl *ctrl )
}
}
ptr
=
lutil_strncopy
(
ptr
,
dr
->
derefVal
.
bv_val
,
dr
->
derefVal
.
bv_len
);
*
ptr
++
=
'\n'
;
*
ptr
=
'\0'
;
assert
(
ptr
<=
buf
+
len
);
...
...
tests/data/deref.out
View file @
f2e6efed
...
...
@@ -31,9 +31,7 @@ uid: ando
dn: cn=Test Group,ou=groups,o=deref
# member: <uid=hyc>;cn=Howard Chu,ou=users,o=deref
# member: <uid=ando>;cn=Pierangelo Masarati,ou=users,o=deref
objectClass: groupOfNames
cn: Test Group
member: cn=Howard Chu,ou=users,o=deref
...
...
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