diff --git a/tcsh-6.14.00-remotehost.patch b/tcsh-6.14.00-remotehost.patch new file mode 100644 index 0000000..e1ad3ec --- /dev/null +++ b/tcsh-6.14.00-remotehost.patch @@ -0,0 +1,21 @@ +--- tcsh-6.14.00/tc.func.c.remotehost 2006-09-09 04:05:48.000000000 +0200 ++++ tcsh-6.14.00/tc.func.c 2006-09-09 04:05:52.000000000 +0200 +@@ -2250,14 +2250,13 @@ + jmp_buf_t osetexit; + getexit(osetexit); + +- (void) alarm(2); +- +- if (setexit() == 0) ++ if (setexit() == 0) { ++ (void) alarm(2); + getremotehost(); +- ++ } ++ (void) alarm(0); + resexit(osetexit); + +- (void) alarm(0); + (void) sigset(SIGALRM, osig); + + #ifdef YPBUGS diff --git a/tcsh.spec b/tcsh.spec index 83b59a4..cb21278 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -3,7 +3,7 @@ Summary: An enhanced version of csh, the C shell. Name: tcsh Version: 6.14 -Release: 10 +Release: 11 License: distributable Group: System Environment/Shells Source: ftp://ftp.astron.com/pub/tcsh/tcsh-%{version}.00.tar.gz @@ -18,6 +18,7 @@ Patch7: tcsh-6.14.00-wide-crash.patch Patch8: tcsh-6.14.00-colors.patch Patch9: tcsh-6.14.00-wide-seeks.patch Patch10: tcsh-6.14.00-spell-crash.patch +Patch11: tcsh-6.14.00-remotehost.patch Provides: csh = %{version} Prereq: fileutils, grep URL: http://www.tcsh.org/ @@ -45,6 +46,7 @@ like syntax. %patch8 -p1 -b .colors %patch9 -p1 -b .wide-seeks %patch10 -p1 -b .spell-crash +%patch11 -p1 -b .remotehost %build %configure --without-hesiod @@ -110,6 +112,9 @@ fi %{_mandir}/*/* %changelog +* Sat Sep 9 2006 Miloslav Trmac - 6.14-11 +- Fix an unlikely crash on startup (#188279) + * Wed Aug 16 2006 Miloslav Trmac - 6.14-10 - Fix an uninitialized variable causing stack corruption (#197968)