From 61b20e5ee653dda680ab3101fa2f7f7ad6ec251b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 26 Jan 2002 09:56:47 +0000 Subject: local_lookup_name() doens't acutally use its 'domain' argument, so drop it and make its use clearer. (This used to be commit d1ea20cc2392f8ba4ac4241f9b5ec14489e49147) --- source3/passdb/passdb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 2bb4ee0a75..52b24b04f3 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -610,23 +610,21 @@ BOOL local_lookup_sid(DOM_SID *sid, char *name, enum SID_NAME_USE *psid_name_use Convert a name into a SID. Used in the lookup name rpc. ********************************************************************/ -BOOL local_lookup_name(const char *c_domain, const char *c_user, DOM_SID *psid, enum SID_NAME_USE *psid_name_use) +BOOL local_lookup_name(const char *c_user, DOM_SID *psid, enum SID_NAME_USE *psid_name_use) { extern DOM_SID global_sid_World_Domain; struct passwd *pass = NULL; DOM_SID local_sid; fstring user; - fstring domain; SAM_ACCOUNT *sam_account = NULL; *psid_name_use = SID_NAME_UNKNOWN; /* - * domain and user may be quoted const strings, and map_username and - * friends can modify them. Make a modifiable copy. JRA. + * user may be quoted a const string, and map_username and + * friends can modify it. Make a modifiable copy. JRA. */ - fstrcpy(domain, c_domain); fstrcpy(user, c_user); sid_copy(&local_sid, &global_sam_sid); -- cgit