From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 30 12:00:29 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 159F237B408 for ; Sun, 30 Mar 2003 12:00:28 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE4BE43FBD for ; Sun, 30 Mar 2003 12:00:23 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2UK0NNS086968 for ; Sun, 30 Mar 2003 12:00:23 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2UK0NqP086967; Sun, 30 Mar 2003 12:00:23 -0800 (PST) Resent-Date: Sun, 30 Mar 2003 12:00:23 -0800 (PST) Resent-Message-Id: <200303302000.h2UK0NqP086967@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stephen Montgomery-Smith Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38DCC37B401 for ; Sun, 30 Mar 2003 11:57:33 -0800 (PST) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.49.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8945843FAF for ; Sun, 30 Mar 2003 11:57:32 -0800 (PST) (envelope-from stephen@cauchy.math.missouri.edu) Received: from cauchy.math.missouri.edu (stephen@localhost [127.0.0.1]) h2UJv7vC085335 for ; Sun, 30 Mar 2003 13:57:07 -0600 (CST) (envelope-from stephen@cauchy.math.missouri.edu) Received: (from stephen@localhost) by cauchy.math.missouri.edu (8.12.8/8.12.8/Submit) id h2UJv7rv085334; Sun, 30 Mar 2003 13:57:07 -0600 (CST) (envelope-from stephen) Message-Id: <200303301957.h2UJv7rv085334@cauchy.math.missouri.edu> Date: Sun, 30 Mar 2003 13:57:07 -0600 (CST) From: Stephen Montgomery-Smith To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/50461: ctm cannot handle the large files currently created. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Stephen Montgomery-Smith List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 20:00:34 -0000 >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 #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: