diff options
author | Jeremy Allison <jra@samba.org> | 2010-10-20 08:16:23 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-10-20 16:02:12 +0000 |
commit | e1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6 (patch) | |
tree | 63aa4baa9b9260e466558bbde9a59c6c82c8c939 /source3/auth/token_util.c | |
parent | ab01d6139fc7b2c4b651a0959a5816352d6bb49b (diff) | |
download | samba-e1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6.tar.gz samba-e1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6.tar.xz samba-e1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6.zip |
Make getpwnam_alloc() static to lib/username.c, and ensure all username lookups go
through Get_Pwnam_alloc(), which is the correct wrapper function. We were using
it *some* of the time anyway, so this just makes us properly consistent.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct 20 16:02:12 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/auth/token_util.c')
-rw-r--r-- | source3/auth/token_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 1a7c4816e8..4a702ef230 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -757,14 +757,14 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username, * about the mapping of guest sid to lp_guestaccount() * username and will return the unix_pw info for a guest * user. Use it if it's there, else lookup the *uid details - * using getpwnam_alloc(). See bug #6291 for details. JRA. + * using Get_Pwnam_alloc(). See bug #6291 for details. JRA. */ /* We must always assign the *uid. */ if (sam_acct->unix_pw == NULL) { - struct passwd *pwd = getpwnam_alloc(sam_acct, *found_username ); + struct passwd *pwd = Get_Pwnam_alloc(sam_acct, *found_username ); if (!pwd) { - DEBUG(10, ("getpwnam_alloc failed for %s\n", + DEBUG(10, ("Get_Pwnam_alloc failed for %s\n", *found_username)); result = NT_STATUS_NO_SUCH_USER; goto done; |