diff --git a/netkit-rsh-0.17-rexec-sig.patch b/netkit-rsh-0.17-rexec-sig.patch new file mode 100644 index 0000000..05d2937 --- /dev/null +++ b/netkit-rsh-0.17-rexec-sig.patch @@ -0,0 +1,17 @@ +--- netkit-rsh-0.17/rexec/rexec.c.rexec-sig 2004-11-17 16:51:37.000000000 +0100 ++++ netkit-rsh-0.17/rexec/rexec.c 2004-11-17 17:17:12.844628352 +0100 +@@ -434,10 +434,10 @@ + break; + default: + if ( sigaction(sig, NULL, &action) < 0 ) +- { +- perror(progname); +- exit(1); +- } ++ /* in the signal(7) you can found "...except SIGKILL and SIGSTOP", ++ * but we detect problems with more signals... ++ */ ++ return; + if ( action.sa_handler != SIG_IGN ) + { + action.sa_handler = handler; diff --git a/rsh.spec b/rsh.spec index b621ddc..720bb54 100644 --- a/rsh.spec +++ b/rsh.spec @@ -34,6 +34,7 @@ Patch19: netkit-rsh-0.17-nohostcheck.patch Patch20: netkit-rsh-0.17-rexec-netrc.patch Patch21: netkit-rsh-0.17-pam-sess.patch Patch22: netkit-rsh-0.17-errno.patch +Patch23: netkit-rsh-0.17-rexec-sig.patch BuildRoot: %{_tmppath}/%{name}-root BuildPrereq: perl @@ -91,6 +92,8 @@ from other machines. %patch20 -p1 -b .rexec-netrc %patch21 -p1 -b .pam-sess %patch22 -p1 -b .errno +%patch23 -p1 -b .rexec-sig + # No, I don't know what this is doing in the tarball. rm -f rexec/rexec @@ -161,7 +164,8 @@ rm -rf ${RPM_BUILD_ROOT} %changelog * Wed Nov 17 2004 Karel Zak 0.17-25 - rexecd uses PAM session now (#68590) -- fix errno usage in rcp (#67361) +- fixed errno usage in rcp (#67361) +- fixed rexec fails with "Invalid Argument" (#118630) * Mon Oct 18 2004 Radek Vokal 0.17-24 - The username and password for ~/.netrc are used (#135643)