[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

patch to pam_rhosts



Here's a little patch to pam_rhosts that implements the special
character '+' that can be used to match any hostname.

--- Linux-PAM-0.54/modules/pam_rhosts/pam_rhosts_auth.c~	Sat Nov 30 19:09:48 1996
+++ Linux-PAM-0.54/modules/pam_rhosts/pam_rhosts_auth.c	Fri Feb 14 10:10:29 1997
@@ -189,6 +189,9 @@
     struct hostent *hp;
     u_long laddr;
     char **pp;
+
+    if (strcmp(lhost, "+") == 0)
+      return (0);
     
     /* Try for raw ip address first. */
     if (isdigit(*lhost) && (long)(laddr = inet_addr(lhost)) != -1)


PS: I'm not on the mailing list.

-- 
	Istvan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []