Date: Fri, 22 Mar 1996 05:10:47 -0500 From: Harlan Stenn <Harlan.Stenn@pfcs.com> To: ports@freebsd.org Cc: amanda-hackers@cs.umd.edu Subject: amanda-2.2.6 patch Message-ID: <9633.827489447@mumps.pfcs.com>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9633.827489447>