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

Re: deadlock in back-ldbm/modrdn.c (ITS#951)

At 02:49 PM 1/8/01 +0000, venaas@uninett.no wrote:
>Full_Name: Stig Venaas
>Version: 2.0.7
>OS: Linux
>URL: http://domen.uninett.no/~venaas/ldbm_back_modrdn_problem.txt
>Submission from: (NULL) (
>On both 2.0.7 and head from november 9th (modrdn.c seems to be unchanged since
>then), and on both Linux and Solaris (I don't think OS matters).
>I'm trying to do:
>ldap_rename_s(ldap, "cn=Anders Lund, o=UNINETT Sekretariat, dc=uninett, dc=no",
>    "cn=Birger Lund", "o=UNINETT Sekretariat, dc=uninett, dc=no", 0, NULL,
>The old and the new parent is the same, and it looks like it tries to write
>the parent twice (both the old and the new which are the same).

We should catch this and either:
        1) ignore the newSuperior field or
        2) return an error as the superior is not new.