From root@obelix.cs.caltech.edu Mon May 10 02:16:14 1999
Return-Path: <root@obelix.cs.caltech.edu>
Received: from vlsi.cs.caltech.edu (vlsi.cs.caltech.edu [131.215.131.129])
	by hub.freebsd.org (Postfix) with ESMTP id 39F4514CB4
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 May 1999 02:16:14 -0700 (PDT)
	(envelope-from root@obelix.cs.caltech.edu)
Received: from obelix.cs.caltech.edu (obelix.cs.caltech.edu [131.215.78.67])
	by vlsi.cs.caltech.edu (8.9.1/8.9.1) with ESMTP id CAA00895
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 May 1999 02:16:03 -0700 (PDT)
Received: (from root@localhost)
	by obelix.cs.caltech.edu (8.8.8/8.8.7) id CAA23966;
	Mon, 10 May 1999 02:16:01 -0700 (PDT)
Message-Id: <199905100916.CAA23966@obelix.cs.caltech.edu>
Date: Mon, 10 May 1999 02:16:01 -0700 (PDT)
From: The System Mangler <root@obelix.cs.caltech.edu>
Reply-To: mika@cs.caltech.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: quot uses 32-bit integers for its calculations
X-Send-Pr-Version: 3.2

>Number:         11623
>Category:       bin
>Synopsis:       quot uses 32-bit integers for its calculations
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 10 02:20:01 PDT 1999
>Closed-Date:    Sun Jul 22 07:57:01 PDT 2001
>Last-Modified:  Sun Jul 22 07:57:25 PDT 2001
>Originator:     The System Mangler
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
  Asynchronous Systems Architecture Project
  Department of Computer Science
  California Institute of Technology
>Environment:

   By now old 3.0-CURRENT (mid/late 1998 version)
	

>Description:

    When running quot, if you have users who use more than 2GB
on a single disk, the information gets screwed up in the predictable
2's complement way.

    To be honest, I am not sure if this is a bug in the program
(i.e., maybe it is supposed to be able to handle the situation).
The comments are too sparse for me to make out exactly what the
ksz-indexed arrays are for.  Maybe it's already been fixed?
This is my version:

static const char rcsid[] =
        "$Id: quot.c,v 1.8 1998/01/17 16:45:03 bde Exp $";

>How-To-Repeat:

   Find a disk with hogs on it, run quot.

>Fix:
	
   Convert the program to use larger data types.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sun Jul 22 07:57:01 PDT 2001 
State-Changed-Why:  
Fixed in rev 1.9 of usr.sbin/quot/quot.c. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11623 
>Unformatted:
