git.samba.org
/
abartlet
/
samba.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make getpwnam_alloc() static to lib/username.c, and ensure all username lookups go
[abartlet/samba.git/.git]
/
source3
/
web
/
cgi.c
diff --git
a/source3/web/cgi.c
b/source3/web/cgi.c
index 1a472a77c7060aa0af90b970bd7d71e2c5d6de6f..e3356a2f7ed8a475efa08bf6ebbcf4c0c53070c1 100644
(file)
--- a/
source3/web/cgi.c
+++ b/
source3/web/cgi.c
@@
-314,7
+314,7
@@
static void cgi_web_auth(void)
exit(0);
}
exit(0);
}
- pwd =
getp
wnam_alloc(talloc_tos(), user);
+ pwd =
Get_P
wnam_alloc(talloc_tos(), user);
if (!pwd) {
printf("%sCannot find user %s<br>%s\n", head, user, tail);
exit(0);
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.
*/
* Try and get the user from the UNIX password file.
*/
- pass =
getp
wnam_alloc(talloc_tos(), user);
+ pass =
Get_P
wnam_alloc(talloc_tos(), user);
rhost = client_name(1);
if (strequal(rhost,"UNKNOWN"))
rhost = client_name(1);
if (strequal(rhost,"UNKNOWN"))