ITS#5768 Avoid extraneous newlines in deref printing

This commit is contained in:
Ondřej Kuzník 2021-03-09 11:46:10 +00:00 committed by Quanah Gibson-Mount
parent 641ecb4108
commit f2e6efed95
2 changed files with 0 additions and 3 deletions

View file

@ -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 );

View file

@ -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