diff --git a/netkit-rsh-0.17-nodns.patch b/netkit-rsh-0.17-nodns.patch new file mode 100644 index 0000000..e4838c2 --- /dev/null +++ b/netkit-rsh-0.17-nodns.patch @@ -0,0 +1,26 @@ +--- 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 ) { diff --git a/rsh.spec b/rsh.spec index c8f3e23..d11570e 100644 --- a/rsh.spec +++ b/rsh.spec @@ -1,7 +1,7 @@ Summary: Clients for remote access commands (rsh, rlogin, rcp). Name: rsh Version: 0.17 -Release: 39%{?dist} +Release: 40%{?dist} License: BSD Group: Applications/Internet @@ -51,6 +51,7 @@ Patch28: netkit-rsh-0.17-pam-rhost.patch Patch29: netkit-rsh-0.17-rlogin-linefeed.patch Patch30: netkit-rsh-0.17-ipv6.patch Patch31: netkit-rsh-0.17-pam_env.patch +Patch32: netkit-rsh-0.17-nodns.patch %description The rsh package contains a set of programs which allow users to run @@ -114,6 +115,7 @@ from other machines. %patch29 -p1 -b .linefeed %patch30 -p1 -b .ipv6 %patch31 -p1 -b .pam_env +%patch32 -p1 -b .nodns # No, I don't know what this is doing in the tarball. rm -f rexec/rexec @@ -139,7 +141,7 @@ sh configure --with-c-compiler=gcc s,^SBINDIR=.*$,SBINDIR=%{_sbindir},; ' MCONFIG %endif -make +make %{?_smp_mflags} %install rm -rf ${RPM_BUILD_ROOT} @@ -182,6 +184,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/man8/*.8* %changelog +* Tue Apr 10 2007 Adam Tkac 0.17-40.fc7 +- improved -D option to rlogind - when name won't be resolved rlogind uses IP address +- added smp_mflags to make + * Mon Jan 22 2007 Adam Tkac 0.17-39.fc7 - rebased on ncurses instead of libtermcap