cvs commit: src/usr.bin/quota quota.c

From: Mike Pritchard <mpp_at_FreeBSD.org>
Date: Sun, 4 Feb 2007 14:06:58 +0000 (UTC)
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
Received on Sun Feb 04 2007 - 14:06:59 UTC