1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

Fix flags in call of lookup_name() in srv_samr_nt.c: can_create().

Use LOOKUP_NAME_LOCAL instead of LOOKUP_NAME_ISOLATED.

Michael
(This used to be commit 1d4e0ad1142c61de402c925306f02f5de2c872f6)
This commit is contained in:
Michael Adam 2007-12-17 11:32:21 +01:00
parent 286b050e15
commit 4c8a708288

View File

@ -2494,9 +2494,9 @@ static NTSTATUS can_create(TALLOC_CTX *mem_ctx, const char *new_name)
DEBUG(10, ("Checking whether [%s] can be created\n", new_name));
become_root();
/* Lookup in our local databases (only LOOKUP_NAME_ISOLATED set)
/* Lookup in our local databases (LOOKUP_NAME_REMOTE not set)
* whether the name already exists */
result = lookup_name(mem_ctx, new_name, LOOKUP_NAME_ISOLATED,
result = lookup_name(mem_ctx, new_name, LOOKUP_NAME_LOCAL,
NULL, NULL, NULL, &type);
unbecome_root();