summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/rcmd.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-10 17:46:19 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-10 17:46:19 +0000
commiteb17276953db2398809b995cbac65df7d95877b1 (patch)
tree9dfb5a2a1d57576058928eb6d9357d58fd17d7f0 /libc/inet/rpc/rcmd.c
parent086f34d77c60917d40c9d49aa25c7af61f6cf378 (diff)
need to keep __check_rhosts_file exported for proper rhost control
Diffstat (limited to 'libc/inet/rpc/rcmd.c')
-rw-r--r--libc/inet/rpc/rcmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c
index 6009d6d31..ccab7d60a 100644
--- a/libc/inet/rpc/rcmd.c
+++ b/libc/inet/rpc/rcmd.c
@@ -368,7 +368,11 @@ int rresvport(int *alport)
}
libc_hidden_def(rresvport)
-static int __check_rhosts_file = 1;
+/* This needs to be exported ... while it is not a documented interface
+ * for rcp related apps, it's a required one that is used to control the
+ * rhost behavior. Legacy sucks.
+ */
+int __check_rhosts_file = 1;
int ruserok(rhost, superuser, ruser, luser)
const char *rhost, *ruser, *luser;