diff options
author | dtucker <dtucker> | 2004-06-22 05:06:46 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2004-06-22 05:06:46 +0000 |
commit | 4beed27c03a7e862f843d713043cacedbc48d382 (patch) | |
tree | 1fffbd71176d4128bf95992f2c81f35b639b18f2 /monitor.c | |
parent | 3c60d26f11b573702d422aa7aa98bc7ac7bdedc1 (diff) | |
download | openssh-4beed27c03a7e862f843d713043cacedbc48d382.tar.gz |
- dtucker@cvs.openbsd.org 2004/06/22 05:05:45
[monitor.c monitor_wrap.c]
Change login->username, will prevent -Wshadow errors in Portable;
ok markus@
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor.c,v 1.59 2004/06/21 17:36:31 avsm Exp $"); +RCSID("$OpenBSD: monitor.c,v 1.60 2004/06/22 05:05:45 dtucker Exp $"); #include <openssl/dh.h> @@ -551,7 +551,7 @@ mm_answer_sign(int sock, Buffer *m) int mm_answer_pwnamallow(int sock, Buffer *m) { - char *login; + char *username; struct passwd *pwent; int allowed = 0; @@ -560,13 +560,13 @@ mm_answer_pwnamallow(int sock, Buffer *m) if (authctxt->attempt++ != 0) fatal("%s: multiple attempts for getpwnam", __func__); - login = buffer_get_string(m, NULL); + username = buffer_get_string(m, NULL); - pwent = getpwnamallow(login); + pwent = getpwnamallow(username); - authctxt->user = xstrdup(login); - setproctitle("%s [priv]", pwent ? login : "unknown"); - xfree(login); + authctxt->user = xstrdup(username); + setproctitle("%s [priv]", pwent ? username : "unknown"); + xfree(username); buffer_clear(m); |