summaryrefslogtreecommitdiffstats
path: root/source3/auth/server_info_sam.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-20 08:16:23 -0700
committerJeremy Allison <jra@samba.org>2010-10-20 16:02:12 +0000
commite1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6 (patch)
tree63aa4baa9b9260e466558bbde9a59c6c82c8c939 /source3/auth/server_info_sam.c
parentab01d6139fc7b2c4b651a0959a5816352d6bb49b (diff)
downloadsamba-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/server_info_sam.c')
-rw-r--r--source3/auth/server_info_sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/server_info_sam.c b/source3/auth/server_info_sam.c
index 4731ad44f1a..c09ae764b95 100644
--- a/source3/auth/server_info_sam.c
+++ b/source3/auth/server_info_sam.c
@@ -70,7 +70,7 @@ NTSTATUS make_server_info_sam(struct auth_serversupplied_info **server_info,
return NT_STATUS_NO_MEMORY;
}
- if ( !(pwd = getpwnam_alloc(result, username)) ) {
+ if ( !(pwd = Get_Pwnam_alloc(result, username)) ) {
DEBUG(1, ("User %s in passdb, but getpwnam() fails!\n",
pdb_get_username(sampass)));
TALLOC_FREE(result);