diff options
author | Darrel Goeddel <dgoeddel@trustedcs.com> | 2006-10-18 18:59:02 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-10-18 18:59:02 -0700 |
commit | 0e0221a70543ba5f2aa7ce188e2dc9544bac96bd (patch) | |
tree | 5063e642cdc9def255dff6873249d65fd7cce310 | |
parent | 698ffcff29d4c574b155451342bc6e3b9ee07287 (diff) |
Set PAM_TTY for local displays
-rw-r--r-- | greeter/greet.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |