Date: Sun, 4 Feb 2007 14:06:58 +0000 (UTC) From: Mike Pritchard <mpp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/quota quota.c Message-ID: <200702041406.l14E6wVv008096@repoman.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702041406.l14E6wVv008096>
