From owner-freebsd-ports Fri Mar 22 02:11:40 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA27660 for ports-outgoing; Fri, 22 Mar 1996 02:11:40 -0800 (PST) Received: from pcpsj.pfcs.com (harlan.fred.net [205.252.219.31]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA27653 for ; Fri, 22 Mar 1996 02:11:34 -0800 (PST) Received: from mumps.pfcs.com (mumps.pfcs.com [192.52.69.11]) by pcpsj.pfcs.com (8.6.12/8.6.9) with SMTP id FAA00601; Fri, 22 Mar 1996 05:10:49 -0500 Received: from localhost by mumps.pfcs.com with SMTP id AA09635 (5.67b/IDA-1.5); Fri, 22 Mar 1996 05:10:48 -0500 To: ports@freebsd.org Cc: amanda-hackers@cs.umd.edu Subject: amanda-2.2.6 patch Date: Fri, 22 Mar 1996 05:10:47 -0500 Message-Id: <9633.827489447@mumps.pfcs.com> From: Harlan Stenn Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Amanda fails to back up partitions over 2G because of an overflow problem. Here's a quick hack of a patch. A better way would be to convert to off_t, huh? (Assuming the re_exec code can handle numbers that big.) --- client-src/sendsize-dump.c- Fri Mar 22 03:55:17 1996 +++ client-src/sendsize-dump.c Fri Mar 22 04:31:42 1996 @@ -214,7 +214,7 @@ errs = re_comp(rp->regex); /* check for error return: errs != NULL */ if(re_exec(str) == 1) - return (first_num(str)*rp->scale+1023)/1024; + return ((off_t)(first_num(str))*rp->scale+1023)/1024; } return -1; }