diff options
author | Jeremy Allison <jra@samba.org> | 2003-06-25 19:01:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-06-25 19:01:17 +0000 |
commit | 0118f6b41757897dc087f79da53d3fe2f4f42e7e (patch) | |
tree | d8461e275fe5c70e222f4f2cd8936cadd562cf6a /source3/sam/idmap.c | |
parent | 72876b79c9b3f0ab3cda6de42d5c8995aadd687e (diff) | |
download | samba-0118f6b41757897dc087f79da53d3fe2f4f42e7e.tar.gz samba-0118f6b41757897dc087f79da53d3fe2f4f42e7e.tar.bz2 samba-0118f6b41757897dc087f79da53d3fe2f4f42e7e.zip |
Ensure idmap backends are added in the correct order (DLIST_ADD puts
things at the *front* of the list). Add more debug. Still broken.. :-(.
Jeremy.
(This used to be commit dd9251e6f51f229ca1fab23d9b06f5bb68644fab)
Diffstat (limited to 'source3/sam/idmap.c')
-rw-r--r-- | source3/sam/idmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/sam/idmap.c b/source3/sam/idmap.c index d2f68acf60..7b4261169f 100644 --- a/source3/sam/idmap.c +++ b/source3/sam/idmap.c @@ -59,7 +59,7 @@ static struct idmap_methods *get_methods(const char *name) NTSTATUS smb_register_idmap(int version, const char *name, struct idmap_methods *methods) { - struct idmap_function_entry *entry; + struct idmap_function_entry *entry, *tmp; if ((version != SMB_IDMAP_INTERFACE_VERSION)) { DEBUG(0, ("Failed to register idmap module.\n" @@ -84,7 +84,7 @@ NTSTATUS smb_register_idmap(int version, const char *name, struct idmap_methods entry->name = smb_xstrdup(name); entry->methods = methods; - DLIST_ADD(backends, entry); + DLIST_ADD_END(backends, entry, tmp); DEBUG(5, ("Successfully added idmap backend '%s'\n", name)); return NT_STATUS_OK; } |