rpms/rsh/devel netkit-rsh-0.17-nodns.patch, NONE, 1.1 rsh.spec, 1.35, 1.36

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Apr 11 17:00:13 UTC 2007


Author: atkac

Update of /cvs/dist/rpms/rsh/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv19938

Modified Files:
	rsh.spec 
Added Files:
	netkit-rsh-0.17-nodns.patch 
Log Message:
improved -D rlogind's option. When client's ip can't be translated to name
rlogind uses ip


netkit-rsh-0.17-nodns.patch:
 network.c |    6 ++++++
 rlogind.8 |    2 ++
 2 files changed, 8 insertions(+)

--- NEW FILE netkit-rsh-0.17-nodns.patch ---
--- 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 ) {


Index: rsh.spec
===================================================================
RCS file: /cvs/dist/rpms/rsh/devel/rsh.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- rsh.spec	22 Jan 2007 13:54:02 -0000	1.35
+++ rsh.spec	11 Apr 2007 17:00:10 -0000	1.36
@@ -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 @@
 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 @@
 %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 @@
     s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
     ' MCONFIG
 %endif
-make
+make %{?_smp_mflags}
 
 %install
 rm -rf ${RPM_BUILD_ROOT}
@@ -182,6 +184,10 @@
 %{_mandir}/man8/*.8*
 
 %changelog
+* Tue Apr 10 2007 Adam Tkac <atkac redhat com> 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 <atkac redhat com> 0.17-39.fc7
 - rebased on ncurses instead of libtermcap
 




More information about the fedora-cvs-commits mailing list