From 0e0221a70543ba5f2aa7ce188e2dc9544bac96bd Mon Sep 17 00:00:00 2001 From: Darrel Goeddel Date: Wed, 18 Oct 2006 18:59:02 -0700 Subject: Set PAM_TTY for local displays --- greeter/greet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/greeter/greet.c b/greeter/greet.c index 4afbd15..645e13a 100644 --- a/greeter/greet.c +++ b/greeter/greet.c @@ -540,7 +540,8 @@ greet_user_rtn GreetUser( (*pamhp, PAM_RHOST, hostname)); free(hostname); } - } + } else + RUN_AND_CHECK_PAM_ERROR(pam_set_item, (*pamhp, PAM_TTY, d->name)); if (!greet->allow_null_passwd) { pam_flags |= PAM_DISALLOW_NULL_AUTHTOK; -- cgit v1.2.3