sudo/sudo-1.7.1-pam_rhost.diff

15 lines
467 B
Diff

Index: auth/pam.c
===================================================================
--- auth/pam.c.orig
+++ auth/pam.c
@@ -111,7 +111,9 @@ pam_init(pw, promptp, auth)
* We set PAM_RHOST to avoid a bug in Solaris 7 and below.
*/
(void) pam_set_item(pamh, PAM_RUSER, user_name);
+#if 0 /* we don't care about Solaris bugs */
(void) pam_set_item(pamh, PAM_RHOST, user_host);
+#endif
/*
* Some versions of pam_lastlog have a bug that