DragonFly commits List (threaded) for 2009-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
DragonFly-2.1.1.449.gf8d09 DragonFly_RELEASE_2_2 usr.sbin/lpr/common_source common.c
commit f8d09cb43d957fad72b19df42cad28a017e55ed5
Author: Simon Schubert <corecode@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@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]