DragonFly- master usr.sbin/lpr/common_source common.c

Simon Schubert corecode at crater.dragonflybsd.org
Thu Jan 22 02:26:12 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(-)


DragonFly BSD source repository

More information about the Commits mailing list