diff options
author | mpp <mpp@FreeBSD.org> | 2007-02-04 14:06:58 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 2007-02-04 14:06:58 +0000 |
commit | 42624a547d0b939d16b7ef2d3965e519816f5585 (patch) | |
tree | 51f0a957971014044d56d17caffe5d9c8057d169 /usr.sbin/chkgrp | |
parent | 029a8268f7e6987371b9b9f6c154a9d898f614ea (diff) | |
download | FreeBSD-src-42624a547d0b939d16b7ef2d3965e519816f5585.zip FreeBSD-src-42624a547d0b939d16b7ef2d3965e519816f5585.tar.gz |
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.
Diffstat (limited to 'usr.sbin/chkgrp')
0 files changed, 0 insertions, 0 deletions