Date: Wed, 23 Aug 2000 16:36:32 -0700 (PDT) From: Alfred Perlstein <alfred@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/lpc lpc.c Message-ID: <200008232336.QAA61808@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <dholland@eecs.harvard.edu> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008232336.QAA61808>