Browse Source

rsh package update

Signed-off-by: basebuilder_pel7x64builder0 <basebuilder@powerel.org>
master
basebuilder_pel7x64builder0 4 years ago
parent
commit
79342afd8b
  1. 4
      SOURCES/netkit-rsh-0.17-ipv6-rexec.patch
  2. 5
      SPECS/rsh.spec

4
SOURCES/netkit-rsh-0.17-ipv6-rexec.patch

@ -57,9 +57,9 @@ diff -up netkit-rsh-0.17/rexecd/rexecd.c.ipv6-rexec netkit-rsh-0.17/rexecd/rexec
+ char remote_addr[INET6_ADDRSTRLEN] = {}; + char remote_addr[INET6_ADDRSTRLEN] = {};
+ +
+ if (from.ss_family == AF_INET) + if (from.ss_family == AF_INET)
+ remote = inet_ntop(AF_INET, &from, remote_addr, INET_ADDRSTRLEN); + remote = inet_ntop(AF_INET, &((struct sockaddr_in *) &from)->sin_addr, remote_addr, INET_ADDRSTRLEN);
+ else + else
+ remote = inet_ntop(AF_INET6, &from, remote_addr, INET6_ADDRSTRLEN); + remote = inet_ntop(AF_INET6, &((struct sockaddr_in6 *) &from)->sin6_addr, remote_addr, INET6_ADDRSTRLEN);
+ +
+ if (remote) { + if (remote) {
+ remote = strdup(remote); + remote = strdup(remote);

5
SPECS/rsh.spec

@ -3,7 +3,7 @@
Summary: Clients for remote access commands (rsh, rlogin, rcp) Summary: Clients for remote access commands (rsh, rlogin, rcp)
Name: rsh Name: rsh
Version: 0.17 Version: 0.17
Release: 79%{?dist} Release: 80%{?dist}
License: BSD License: BSD
Group: Applications/Internet Group: Applications/Internet


@ -258,6 +258,9 @@ install -m644 %SOURCE10 %{buildroot}%{_unitdir}/rexec.socket
%{_mandir}/man8/*.8* %{_mandir}/man8/*.8*


%changelog %changelog
* Thu Jan 30 2020 Michal Ruprich <mruprich@redhat.com> - 0.17-80
- Resolves: #1790532 - rexecd prints incorrect IP addresses with -D

* Sat Apr 28 2018 Michal Ruprich <mruprich@redhat.com> - 0.17-79 * Sat Apr 28 2018 Michal Ruprich <mruprich@redhat.com> - 0.17-79
- Related: #1477207 - service and socket file directives should be under [Unit] - Related: #1477207 - service and socket file directives should be under [Unit]



Loading…
Cancel
Save