From: Philip Homburg Date: Fri, 14 Jul 2006 12:48:01 +0000 (+0000) Subject: Fixed ruserok not to required /etc/hosts.equiv. X-Git-Tag: v3.1.3~248 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.conf.5.html?a=commitdiff_plain;h=ee46e92dd242a4ad6e61a2a35cb1603e446caf2b;p=minix.git Fixed ruserok not to required /etc/hosts.equiv. --- diff --git a/lib/ip/ruserok.c b/lib/ip/ruserok.c index ad6651771..ec00a792f 100755 --- a/lib/ip/ruserok.c +++ b/lib/ip/ruserok.c @@ -12,6 +12,7 @@ */ #include +#include #include #include #include @@ -177,7 +178,12 @@ int iruserok(unsigned long raddr, int superuser, (void)strcat(pbuf, "/.rhosts"); } - if ((hostf = fopen(pbuf, "r")) == NULL) return (-1); + if ((hostf = fopen(pbuf, "r")) == NULL) + { + if (errno == ENOENT) + continue; + return (-1); + } r = __ivaliduser(hostf, raddr, luser, ruser); (void)fclose(hostf);