diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-08 19:16:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-08 19:16:06 +0000 |
commit | 3758f77c8130eef3dbf871ba3a460f453d7f50b4 (patch) | |
tree | 369f9c452972d369402d74de7cc237c3e8f14987 /libexec/rshd | |
parent | 1eb877f8440235d67de422d66593519c68e7ebd8 (diff) |
should not call setpwent(); millert agrees
Diffstat (limited to 'libexec/rshd')
-rw-r--r-- | libexec/rshd/rshd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index c4f4d0d2f15..f6ef85133f6 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rshd.c,v 1.51 2004/11/17 01:47:20 itojun Exp $ */ +/* $OpenBSD: rshd.c,v 1.52 2008/04/08 19:16:05 deraadt Exp $ */ /*- * Copyright (c) 1988, 1989, 1992, 1993, 1994 @@ -37,7 +37,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; */ -static char *rcsid = "$OpenBSD: rshd.c,v 1.51 2004/11/17 01:47:20 itojun Exp $"; +static char *rcsid = "$OpenBSD: rshd.c,v 1.52 2008/04/08 19:16:05 deraadt Exp $"; #endif /* not lint */ /* @@ -473,7 +473,6 @@ doit(struct sockaddr *fromp) getstr(remuser, sizeof(remuser), "remuser"); getstr(locuser, sizeof(locuser), "locuser"); getstr(cmdbuf, sizeof(cmdbuf), "command"); - setpwent(); pwd = getpwnam(locuser); if (pwd == NULL) { syslog(LOG_INFO|LOG_AUTH, |