From bb07eea18f1a6ba24b28000ed5f7ac6d6d66e963 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 13 Sep 2007 22:42:15 +0000 Subject: [PATCH] Set PAM_RHOST to work around a bug in Solaris 7 and lower that results in a segv. --- auth/pam.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth/pam.c b/auth/pam.c index 244ea3715..dec53ac25 100644 --- a/auth/pam.c +++ b/auth/pam.c @@ -190,9 +190,11 @@ pam_prep_user(pw) /* * Set PAM_USER to the user we are changing *to* and * set PAM_RUSER to the user we are coming *from*. + * We set PAM_RHOST to avoid a bug in Solaris 7 and below. */ (void) pam_set_item(pamh, PAM_USER, pw->pw_name); (void) pam_set_item(pamh, PAM_RUSER, user_name); + (void) pam_set_item(pamh, PAM_RHOST, user_host); /* * Set credentials (may include resource limits, device ownership, etc). -- 2.40.0