[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: able to add an entry without parent

>when the entry is the context prefix (or, as a special
>case, when the entry DN has only one RDN and the
>context prefix is the empty DN).

The next if statement (be_issuffix() || be_isupdate()) also
does not seem to be correct.
Wondering if dnParent() can be changed to
        /* one-level dn */
        if ( p == NULL ) {
                pdn = slap_empty_bv;
then the above condition meets automatically.

btw, the same applies for modrdn.

- Jong

Jong Hyuk Choi
IBM Thomas J. Watson Research Center - Enterprise Linux Group
P. O. Box 218, Yorktown Heights, NY 10598
email: jongchoi@us.ibm.com
(phone) 914-945-3979    (fax) 914-945-4425   TL: 862-3979