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/web | |
parent | ab01d6139fc7b2c4b651a0959a5816352d6bb49b (diff) | |
download | samba-e1cfca1e2e0f005ac9d73c6b0eb64bc99413aec6.tar.gz |
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/web')
-rw-r--r-- | source3/web/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 1a472a77c70..e3356a2f7ed 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -314,7 +314,7 @@ static void cgi_web_auth(void) exit(0); } - pwd = getpwnam_alloc(talloc_tos(), user); + pwd = Get_Pwnam_alloc(talloc_tos(), user); if (!pwd) { printf("%sCannot find user %s<br>%s\n", head, user, tail); exit(0); @@ -369,7 +369,7 @@ static bool cgi_handle_authorization(char *line) * Try and get the user from the UNIX password file. */ - pass = getpwnam_alloc(talloc_tos(), user); + pass = Get_Pwnam_alloc(talloc_tos(), user); rhost = client_name(1); if (strequal(rhost,"UNKNOWN")) |