getpwnam -> getpwnam_shadow

This commit is contained in:
sthen 2015-11-19 14:03:30 +00:00
parent d96d0f1507
commit 7ee6ff990d
2 changed files with 14 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.54 2015/08/14 13:49:41 sthen Exp $
# $OpenBSD: Makefile,v 1.55 2015/11/19 14:03:30 sthen Exp $
COMMENT= manage remote serial consoles via TCP/IP
DISTNAME= conserver-8.2.1
REVISION= 1
REVISION= 2
CATEGORIES= comms
MAINTAINER= Stuart Henderson <sthen@openbsd.org>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-conserver_group_c,v 1.7 2015/11/19 14:03:30 sthen Exp $
--- conserver/group.c.orig Thu Nov 19 13:55:52 2015
+++ conserver/group.c Thu Nov 19 13:59:18 2015
@@ -754,7 +754,7 @@ CheckPass(char *pcUser, char *pcWord, FLAG empty_check
struct spwd *spwd;
# endif
- if ((pwd = getpwnam(pcUser)) == (struct passwd *)0) {
+ if ((pwd = getpwnam_shadow(pcUser)) == (struct passwd *)0) {
CONDDEBUG((1, "CheckPass(): getpwnam(%s): %s", pcUser,
strerror(errno)));
retval = AUTH_NOUSER;