From owner-cvs-all@FreeBSD.ORG Sun Feb 4 14:06:59 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 498A416A400; Sun, 4 Feb 2007 14:06:59 +0000 (UTC) (envelope-from mpp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id DC52B13C442; Sun, 4 Feb 2007 14:06:58 +0000 (UTC) (envelope-from mpp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l14E6wNc008097; Sun, 4 Feb 2007 14:06:58 GMT (envelope-from mpp@repoman.freebsd.org) Received: (from mpp@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l14E6wVv008096; Sun, 4 Feb 2007 14:06:58 GMT (envelope-from mpp) Message-Id: <200702041406.l14E6wVv008096@repoman.freebsd.org> From: Mike Pritchard Date: Sun, 4 Feb 2007 14:06:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/quota quota.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2007 14:06:59 -0000 mpp 2007-02-04 14:06:58 UTC FreeBSD src repository Modified files: usr.bin/quota quota.c Log: If a user is over both the soft block limit and soft i-node limit, quota will report one of the grace times incorrectly. This is due to it storing the result in a static buffer, and the routine being called like: printf("....", ..., timeprnt(btime), timeprnt(itime), ...) The problem becomes very obvious if you change one of the default grace periods to be much larger than the other one. Changed timeprnt to dynamically allocate the string to be displayed. Revision Changes Path 1.28 +29 -13 src/usr.bin/quota/quota.c