bin/50461: ctm cannot handle the large files currently created.
Stephen Montgomery-Smith
stephen at math.missouri.edu
Sun Mar 30 12:00:34 PST 2003
>Number: 50461
>Category: bin
>Synopsis: ctm cannot handle the large files currently created.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 30 12:00:23 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Stephen Montgomery-Smith
>Release: FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD cauchy 4.8-RC FreeBSD 4.8-RC #0: Fri Mar 21 10:46:19 CST 2003 stephen at cauchy:/usr/obj/usr/src/sys/cauchy i386
>Description:
ctm cannot handle the large files that have been recently created.
>How-To-Repeat:
Find an empty directory.
Download cvs-cur.9100xEmpty.gz from one of the FreeBSD mirrors (look in the
directory CTM). Put this into the empty directory and cd to that directory.
ctm cvs-cur.9100xEmpty.gz
>Fix:
There is a test for MAXSIZE in ctm.h. MAXSIZE is currently too small. But
actually it seems that MAXSIZE really has very little purpose, so it seems
better to simply remove the test.
diff -ur /usr/src/usr.sbin/ctm/ctm/ctm.h ctm/ctm/ctm.h
--- /usr/src/usr.sbin/ctm/ctm/ctm.h Mon Mar 3 15:32:15 2003
+++ ctm/ctm/ctm.h Sat Mar 29 11:17:51 2003
@@ -26,7 +26,6 @@
#include <sys/time.h>
#define VERSION "2.0"
-#define MAXSIZE (1024*1024*40)
#define SUBSUFF ".ctm"
#define TMPSUFF ".ctmtmp"
diff -ur /usr/src/usr.sbin/ctm/ctm/ctm_input.c ctm/ctm/ctm_input.c
--- /usr/src/usr.sbin/ctm/ctm/ctm_input.c Mon Mar 3 15:32:15 2003
+++ ctm/ctm/ctm_input.c Sat Mar 29 11:18:52 2003
@@ -77,10 +77,6 @@
u_chars *= 10;
u_chars += (*q - '0');
}
- if(u_chars > MAXSIZE) {
- Fatal("Bytecount too large.");
- return -1;
- }
return u_chars;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list