Add dn_subtree() (used for subtree index generation)

This commit is contained in:
Kurt Zeilenga 1999-08-12 04:20:32 +00:00
parent 00ba798bd4
commit 397294fc40

View file

@ -347,8 +347,24 @@ char **dn_subtree(
Backend *be,
char *dn )
{
/* not yet implemented */
return NULL;
char *child, *parent;
char **subtree = NULL;
child = dn;
do {
charray_add( &subtree, child );
parent = dn_parent( be, child );
if( child != dn ) {
free( child );
}
child = parent;
} while ( child != NULL );
return subtree;
}