summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/ruserok.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libc/net/ruserok.c b/src/lib/libc/net/ruserok.c
index 9a0af43219..4218b419b7 100644
--- a/src/lib/libc/net/ruserok.c
+++ b/src/lib/libc/net/ruserok.c
@@ -55,9 +55,6 @@ PROTO_NORMAL(__ivaliduser_sa);
55static int __icheckhost(struct sockaddr *, socklen_t, const char *); 55static int __icheckhost(struct sockaddr *, socklen_t, const char *);
56static char *__gethostloop(struct sockaddr *, socklen_t); 56static char *__gethostloop(struct sockaddr *, socklen_t);
57 57
58int __check_rhosts_file = 1;
59char *__rcmd_errstr;
60
61int 58int
62ruserok(const char *rhost, int superuser, const char *ruser, const char *luser) 59ruserok(const char *rhost, int superuser, const char *ruser, const char *luser)
63{ 60{
@@ -128,7 +125,7 @@ again:
128 } 125 }
129 (void)fclose(hostf); 126 (void)fclose(hostf);
130 } 127 }
131 if (first == 1 && (__check_rhosts_file || superuser)) { 128 if (first == 1) {
132 int len; 129 int len;
133 130
134 first = 0; 131 first = 0;
@@ -169,7 +166,6 @@ again:
169 cp = ".rhosts writable by other than owner"; 166 cp = ".rhosts writable by other than owner";
170 /* If there were any problems, quit. */ 167 /* If there were any problems, quit. */
171 if (cp) { 168 if (cp) {
172 __rcmd_errstr = cp;
173 (void)fclose(hostf); 169 (void)fclose(hostf);
174 return (-1); 170 return (-1);
175 } 171 }