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

Re: able to add an entry without parent

It does look like the code can be simplified quite a bit...
but I'm not sure dnParent() can or should be changed.  I
think we should confine the fix to add.c and modrdn.c for now.


At 03:32 PM 9/10/2003, Jonghyuk Choi wrote:
>>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; 
>                return; 
>        } 
>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