Make it compile without -DNO_PAM again.

This commit is contained in:
Ruslan Ermilov 2000-10-06 17:08:31 +00:00
parent bb294ac6e9
commit 9b376c9084
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ SRCS= rlogind.c
MAN8= rlogind.8
DPADD= ${LIBUTIL}
LDADD= -lutil
CFLAGS+= -Wall -DNO_PAM -DINET6
CFLAGS+= -Wall -DINET6
.if defined(NOPAM)
CFLAGS+= -DNO_PAM

View File

@ -570,6 +570,10 @@ int
do_rlogin(dest)
union sockunion *dest;
{
#ifndef NO_PAM
int retval;
#endif
getstr(rusername, sizeof(rusername), "remuser too long");
getstr(lusername, sizeof(lusername), "locuser too long");
getstr(term+ENVSIZE, sizeof(term)-ENVSIZE, "Terminal type too long");