From 3d6bab6b7c63da7ac3b363864ec324aff287f02e Mon Sep 17 00:00:00 2001 From: jvdias Date: Jan 13 2005 21:52:27 +0000 Subject: bug 143929 / 145004 : fix race condition in telnetd on wtmp lock --- diff --git a/telnet-0.17-cleanup_race.patch b/telnet-0.17-cleanup_race.patch new file mode 100644 index 0000000..bc3c0f5 --- /dev/null +++ b/telnet-0.17-cleanup_race.patch @@ -0,0 +1,11 @@ +--- netkit-telnet-0.17/telnetd/telnetd.c.cleanup_race 2005-01-11 18:39:49.578123000 -0500 ++++ netkit-telnet-0.17/telnetd/telnetd.c 2005-01-11 18:42:45.909616000 -0500 +@@ -1081,6 +1081,8 @@ + if (FD_ISSET(p, &obits) && (pfrontp - pbackp) > 0) + ptyflush(); + } ++ /* to avoid a race for wtmp lock */ ++ signal(SIGCHLD, SIG_IGN); + cleanup(0); + } /* end of telnet */ + diff --git a/telnet.spec b/telnet.spec index 0eb6539..caaa35c 100644 --- a/telnet.spec +++ b/telnet.spec @@ -1,7 +1,7 @@ Summary: The client program for the telnet remote login protocol. Name: telnet Version: 0.17 -Release: 31 +Release: 32 Epoch: 1 License: BSD Group: Applications/Internet