]> granicus.if.org Git - sudo/commitdiff
Only set PAM_RHOST for Solaris, where it is needed to avoid a bug.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Jul 2010 12:56:08 +0000 (08:56 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Jul 2010 12:56:08 +0000 (08:56 -0400)
On Linux it causes a DNS lookup via libaudit.

--HG--
branch : 1.7

auth/pam.c

index d4087244c91cf2fc7dcc4de9b165c8db6bed0284..ddffe01d971b4987cace5c2f9a1d8b4953ca1d7f 100644 (file)
@@ -110,7 +110,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);
+#ifdef __sun__
     (void) pam_set_item(pamh, PAM_RHOST, user_host);
+#endif
 
     /*
      * Some versions of pam_lastlog have a bug that