rpms/ksh/devel ksh-20090630-jlist.patch, NONE, 1.1 .cvsignore, 1.17, 1.18 ksh.spec, 1.49, 1.50 sources, 1.18, 1.19

Michal Hlavinka mhlavink at fedoraproject.org
Thu Aug 27 09:27:36 UTC 2009


Author: mhlavink

Update of /cvs/extras/rpms/ksh/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10790

Modified Files:
	.cvsignore ksh.spec sources 
Added Files:
	ksh-20090630-jlist.patch 
Log Message:
updated to 2009-06-30


ksh-20090630-jlist.patch:
 jobs.c |   13 +++++++++++++
 1 file changed, 13 insertions(+)

--- NEW FILE ksh-20090630-jlist.patch ---
diff -up ksh-20090630/src/cmd/ksh93/sh/jobs.c.jlist ksh-20090630/src/cmd/ksh93/sh/jobs.c
--- ksh-20090630/src/cmd/ksh93/sh/jobs.c.jlist	2009-04-30 00:07:32.000000000 +0200
+++ ksh-20090630/src/cmd/ksh93/sh/jobs.c	2009-08-27 08:51:48.028116714 +0200
@@ -1745,6 +1745,19 @@ static int job_chksave(register pid_t pi
 		jpold = jp;
 		jp = jp->next;
 	}
+	if(jp && (jp==jpold || count<0))
+	{
+		Sfio_t *log = sfopen((Sfio_t*)0,"/tmp/kshlog","a");
+		if(log)
+		{
+			fchmod(sffileno(log),S_IRUSR|S_IRGRP|S_IROTH|S_IWUSR|S_IWGRP|S_IWOTH);
+			sfprintf(log,"chksave loop jp==jpold=%d jpold=%p jp->pid=%d pid=%d count=%d\n",jp==jpold,jpold,jp->pid,pid,bck.count);
+			sfclose(log);
+			sfsync(log);
+			errormsg(SH_DICT,ERROR_warn(0),"job list infinite loop -- this should not happen"); 
+			abort();
+		}
+	}
 	if(jp)
 	{
 		r = 0;


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ksh/devel/.cvsignore,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- .cvsignore	5 May 2009 10:40:48 -0000	1.17
+++ .cvsignore	27 Aug 2009 09:27:35 -0000	1.18
@@ -1,2 +1,2 @@
-INIT.2009-05-01.tgz
-ast-ksh.2009-05-01.tgz
+INIT.2009-06-30.tgz
+ast-ksh.2009-06-30.tgz


Index: ksh.spec
===================================================================
RCS file: /cvs/extras/rpms/ksh/devel/ksh.spec,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -p -r1.49 -r1.50
--- ksh.spec	25 Jul 2009 04:48:55 -0000	1.49
+++ ksh.spec	27 Aug 2009 09:27:35 -0000	1.50
@@ -1,20 +1,23 @@
-%define       releasedate   2009-05-05
+%define       releasedate   2009-06-30
 
 Name:         ksh
 Summary:      The Original ATT Korn Shell
 URL:          http://www.kornshell.com/
 Group:        System Environment/Shells
 License:      CPL
-Version:      20090505
-Release:      2%{?dist}
+Version:      20090630
+Release:      1%{?dist}
 Source0:      http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
 Source1:      http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
 Source3:      kshrc.rhs
 Source4:      dotkshrc
 
-#don't use not wanted/needed builtins
+#don't use not wanted/needed builtins - Fedora specific
 Patch1:       ksh-20070328-builtins.patch
 
+#435159 - check if there is looped list
+Patch2:       ksh-20090630-jlist.patch
+
 BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Conflicts:    pdksh
 Requires: coreutils, glibc-common, diffutils
@@ -32,6 +35,7 @@ with "sh" (the Bourne Shell).
 %setup -q -c
 %setup -q -T -D -a 1
 %patch1 -p1 -b .builtins
+%patch2 -p1 -b .jlist
 
 %build
 ./bin/package "read" ||:
@@ -84,6 +88,9 @@ fi
     rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Thu Aug 27 2009 Michal Hlavinka <mhlavink at redhat.com> - 20090630-1
+- updated to 2009-06-30
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20090505-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ksh/devel/sources,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- sources	11 May 2009 08:08:38 -0000	1.18
+++ sources	27 Aug 2009 09:27:35 -0000	1.19
@@ -1,2 +1,2 @@
-e941c0a95b73c8309e6afff10f79d988  INIT.2009-05-05.tgz
-dff46f3e047ac35ac78a81c52938991b  ast-ksh.2009-05-05.tgz
+9a96103105517702e116ba0267653f84  INIT.2009-06-30.tgz
+51c39250763366a68579806bcc77a098  ast-ksh.2009-06-30.tgz




More information about the scm-commits mailing list