DragonFly-2.1.1.449.gf8d09 DragonFly_RELEASE_2_2 usr.sbin/lpr/common_source common.c

Simon Schubert corecode at crater.dragonflybsd.org
Tue Feb 3 11:17:21 PST 2009


commit f8d09cb43d957fad72b19df42cad28a017e55ed5
Author: Simon Schubert <corecode at dragonflybsd.org>
Date:   Thu Jan 22 11:19:21 2009 +0100

    lpr: don't rely on dirs having st_size > 0
    
    getq determines the initial size of its queue array based on the st_size
    of the queue directory.  If the queue directory is on a HAMMER file
    system, this size will be reported as 0.  However the following array
    growing logic just doubles the array size, thus always staying at 0.
    
    Use a sensible minimum array size of 20 items (~ 512/24).
    
    Reported-and-fix-by:  Patrick Georgi <patrick at georgi-clan.de>

Summary of changes:
 usr.sbin/lpr/common_source/common.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f8d09cb43d957fad72b19df42cad28a017e55ed5


-- 
DragonFly BSD source repository





More information about the Commits mailing list