Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2010 07:18:46 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/i386/ibcs2 ibcs2_misc.c src/sys/kern kern_prot.c
Message-ID:  <201001150719.o0F7JXeT099965@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
brooks      2010-01-15 07:18:46 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/ibcs2       ibcs2_misc.c 
    sys/kern             kern_prot.c 
  Log:
  SVN rev 202342 on 2010-01-15 07:18:46Z by brooks
  
  Only allocate the space we need before calling kern_getgroups instead
  of allocating what ever the user asks for up to "ngroups_max + 1".  On
  systems with large values of kern.ngroups this will be more efficient.
  
  The now redundant check that the array is large enough in
  kern_getgroups() is deliberate to allow this change to be merged to
  stable/8 without breaking potential third party consumers of the API.
  
  Reported by:    bde
  MFC after:      28 days
  
  Revision  Changes    Path
  1.77      +7 -3      src/sys/i386/ibcs2/ibcs2_misc.c
  1.228     +7 -1      src/sys/kern/kern_prot.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001150719.o0F7JXeT099965>