- Fix an unlikely crash on startup (#188279)

This commit is contained in:
Miloslav Trmac 2006-09-09 02:13:39 +00:00
parent 42d319dca1
commit 6c0b69de07
2 changed files with 27 additions and 1 deletions

View File

@ -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

View File

@ -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 <mitr@redhat.com> - 6.14-11
- Fix an unlikely crash on startup (#188279)
* Wed Aug 16 2006 Miloslav Trmac <mitr@redhat.com> - 6.14-10
- Fix an uninitialized variable causing stack corruption (#197968)