107 |
{ |
{ |
108 |
if (__ivaliduser (hostf, raddr, luser, ruser) == 0) |
if (__ivaliduser (hostf, raddr, luser, ruser) == 0) |
109 |
{ |
{ |
110 |
(void) fclose (hostf); |
fclose (hostf); |
111 |
return 0; |
return 0; |
112 |
} |
} |
113 |
(void) fclose (hostf); |
fclose (hostf); |
114 |
} |
} |
115 |
if (first == 1 && (__check_rhosts_file || superuser)) |
if (first == 1 && (__check_rhosts_file || superuser)) |
116 |
{ |
{ |
134 |
* are protected read/write owner only. |
* are protected read/write owner only. |
135 |
*/ |
*/ |
136 |
uid = geteuid(); |
uid = geteuid(); |
137 |
(void)seteuid (pwd->pw_uid); |
seteuid (pwd->pw_uid); |
138 |
hostf = fopen (pbuf, "r"); |
hostf = fopen (pbuf, "r"); |
139 |
(void)seteuid (uid); |
seteuid (uid); |
140 |
|
|
141 |
if (hostf == NULL) |
if (hostf == NULL) |
142 |
return -1; |
return -1; |