Blob Blame History Raw
--- netkit-rsh-0.17/rlogind/rlogind.8.nodns	2007-04-11 18:57:18.000000000 +0200
+++ netkit-rsh-0.17/rlogind/rlogind.8	2007-04-11 18:58:03.000000000 +0200
@@ -53,6 +53,8 @@
 .Bl -tag -width Ds
 .It Fl a
 Ask hostname for verification.
+.It Fl D
+Disable reverse client checking. Security is lower
 .It Fl h
 Permit use of superuser 
 .Dq Pa .rhosts
--- netkit-rsh-0.17/rlogind/network.c.nodns	2007-04-11 18:48:49.000000000 +0200
+++ netkit-rsh-0.17/rlogind/network.c	2007-04-11 18:48:49.000000000 +0200
@@ -127,6 +127,12 @@
 	error = getnameinfo(fromp, fromlen,
 		hname_buf, sizeof(hname_buf), portname, NI_MAXSERV,
 		NI_NUMERICSERV);
+	if((error == EAI_AGAIN) && no_host_check)
+	{
+		error = getnameinfo(fromp, fromlen,
+                hname_buf, sizeof(hname_buf), portname, NI_MAXSERV,
+                NI_NUMERICSERV | NI_NUMERICHOST);
+	}
 	assert(error == 0);
 
 	if ((check_all || local_domain(hname_buf)) && !no_host_check ) {