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
[-- Attachment #1 --]
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
[-- Attachment #2 --]
--- 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--;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?400CC116.6050009>
