Don't set PAM_RHOST, this is a local login.

Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Dag-Erling Smørgrav 2002-01-24 16:20:17 +00:00
parent ca355e5451
commit 905fd6f3ee

View File

@ -122,8 +122,7 @@ main(int argc, char *argv[])
gid_t gid;
int asme, ch, asthem, fastlogin, prio, i, setwhat, retcode,
statusp, child_pid, child_pgrp, ret_pid;
char *username, *cleanenv, *class, shellbuf[MAXPATHLEN],
myhost[MAXHOSTNAMELEN + 1];
char *username, *cleanenv, *class, shellbuf[MAXPATHLEN];
const char *p, *user, *shell, *mytty, **nargv;
shell = class = cleanenv = NULL;
@ -217,9 +216,6 @@ main(int argc, char *argv[])
PAM_SET_ITEM(PAM_RUSER, getlogin());
gethostname(myhost, sizeof(myhost));
PAM_SET_ITEM(PAM_RHOST, myhost);
mytty = ttyname(STDERR_FILENO);
if (!mytty)
mytty = "tty";