Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2004 23:48:06 -0600
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        ctm-users@freebsd.org
Subject:   Re: CTM problem
Message-ID:  <400CC116.6050009@math.missouri.edu>
In-Reply-To: <400C9A7C.1000508@math.missouri.edu>
References:  <20040119082251.GA2708@server.vk2pj.dyndns.org> <400C9A7C.1000508@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090009040102050407040708
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Stephen Montgomery-Smith wrote:
> Peter Jeremy wrote:
> 
>> CTM seems to have died sometime after 2004-Jan-17 0055 UTC - the
>> last delta mailed or available via FTP is cvs-cur.9944.gz
>>
> 
> 


The enclosed patch seems to fix the problem, well, at least it is a band aid. 
cvs-cur should start up again tonight.

(The setlinebuf is added so that the log files are a bit more informative for me.)

Stephen


--------------090009040102050407040708
Content-Type: text/plain;
 name="ddd.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ddd.txt"

--- mkctm.c-orig	Mon Jan 19 23:27:59 2004
+++ mkctm.c	Mon Jan 19 23:30:53 2004
@@ -217,7 +217,7 @@
 		{
 			u_long l = s2.st_size + 2;
 			u_char *cmd = alloca(strlen(buf1)+strlen(buf2)+100);
-			u_char *ob = alloca(l), *p;
+			u_char *ob = malloc(l), *p;
 			int j;
 			FILE *F;
 			
@@ -291,6 +291,7 @@
 				s_sub_files++;
 				s_sub_bytes += s2.st_size;
 			}
+			free(ob);
 		}
 	    finish:
 		munmap(p1, s1.st_size);
@@ -547,6 +548,8 @@
 			logf = fopen(optarg, "w");
 			if (!logf)
 				err(1, "%s", optarg);
+			else
+				setlinebuf(logf);
 			break;
 		case 'q':
 			verbose--;

--------------090009040102050407040708--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?400CC116.6050009>