Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 26 Nov 1999 22:23:27 +0000 (22:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 26 Nov 1999 22:23:27 +0000 (22:23 +0000)
* inet/rcmd.c (ruserok): Use iruserok2 not iruserok.

ChangeLog
inet/rcmd.c

index f832f63..714e504 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 1999-11-26  Ulrich Drepper  <drepper@cygnus.com>
 
+       * inet/rcmd.c (ruserok): Use iruserok2 not iruserok.
+
        * locale/iso-3166.def: Update from latest official list.
 
 1999-11-26  Andreas Jaeger  <aj@suse.de>
index 122668d..ace393f 100644 (file)
@@ -56,7 +56,10 @@ static char sccsid[] = "@(#)rcmd.c   8.3 (Berkeley) 3/26/94";
 int __ivaliduser __P ((FILE *, u_int32_t, const char *, const char *));
 static int __ivaliduser2 __P ((FILE *, u_int32_t, const char *, const char *,
                               const char *));
-int iruserok (u_int32_t raddr, int superuser, const char *ruser, *luser);
+static int iruserok2 (u_int32_t raddr, int superuser, const char *ruser,
+                     const char *luser, const char *rhost);
+int iruserok (u_int32_t raddr, int superuser, const char *ruser,
+             const char *luser);
 
 
 int
@@ -286,7 +289,7 @@ ruserok(rhost, superuser, ruser, luser)
 
        for (ap = hp->h_addr_list; *ap; ++ap) {
                bcopy(*ap, &addr, sizeof(addr));
-               if (iruserok(addr, superuser, ruser, luser, rhost) == 0)
+               if (iruserok2(addr, superuser, ruser, luser, rhost) == 0)
                        return 0;
        }
        return -1;