diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-01-21 00:47:02 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-01-21 00:47:02 +0000 |
commit | e1793bde612c499d08c6ecb9fdecb630a9cdf04d (patch) | |
tree | b13b0edb154ac5713ad7e75859c30aebd153f373 /source3/web | |
parent | a03b5e3864ac6044694fe0b4e7f83098598b60dc (diff) | |
download | samba-e1793bde612c499d08c6ecb9fdecb630a9cdf04d.tar.gz samba-e1793bde612c499d08c6ecb9fdecb630a9cdf04d.tar.bz2 samba-e1793bde612c499d08c6ecb9fdecb630a9cdf04d.zip |
getpwnam -> getpwnam_alloc
(This used to be commit f8208458b3ac05743932d96e4d0a919adc0d9e55)
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/cgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index a8cb543dfb..e785ce92d8 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -312,7 +312,7 @@ static void cgi_web_auth(void) exit(0); } - pwd = getpwnam(user); + pwd = getpwnam_alloc(user); if (!pwd) { printf("%sCannot find user %s<br>%s\n", head, user, tail); exit(0); @@ -325,6 +325,7 @@ static void cgi_web_auth(void) head, user, (int)geteuid(), (int)getuid(), tail); exit(0); } + passwd_free(&pwd); } /*************************************************************************** |