From owner-cvs-all Wed Aug 23 16:36:36 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 05BCF37B619; Wed, 23 Aug 2000 16:36:32 -0700 (PDT) Received: (from alfred@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA61808; Wed, 23 Aug 2000 16:36:32 -0700 (PDT) (envelope-from alfred@FreeBSD.org) Message-Id: <200008232336.QAA61808@freefall.freebsd.org> From: Alfred Perlstein Date: Wed, 23 Aug 2000 16:36:32 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/lpc lpc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG alfred 2000/08/23 16:36:32 PDT Modified files: usr.sbin/lpr/lpc lpc.c Log: the code assumes that getgroups() always returns NGROUPS groups, however that is not true. Instead of looping NGROUPS times, get the return value from getgroups() and loop over the return that many times. Noticed by: David A. Holland Revision Changes Path 1.15 +5 -3 src/usr.sbin/lpr/lpc/lpc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message