cvs commit: src/usr.bin/quota quota.c
mpp 2007-02-04 14:06:58 UTC
FreeBSD src repository
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
Received on Sun Feb 04 2007 - 14:06:59 UTC