Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 2003 13:57:07 -0600 (CST)
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/50461: ctm cannot handle the large files currently created.
Message-ID:  <200303301957.h2UJv7rv085334@cauchy.math.missouri.edu>
Resent-Message-ID: <200303302000.h2UK0NqP086967@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



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