Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2006 17:45:33 +0000 (UTC)
From:      Maxim Konovalov <maxim@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/gen getgrent.c
Message-ID:  <200607141745.k6EHjXuH018570@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
maxim       2006-07-14 17:45:33 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         getgrent.c 
  Log:
  o compat_group() and files_group() are more complicated than I thought
  in rev. 1.34.  Mainly I missed the fact that the buffer is used for two
  purposes:
  
  1) storing a group line from the group file;
  
  2) __gr_parse_entry() parses the buffer and tries to put the group
  members to the remaining part of the buffer and can fail if there
  is no enough room for them.
  
  Re-arrange the buffer size checks to account the latter case.
  
  Submitted by:   Kirk R Webb
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.35      +6 -4      src/lib/libc/gen/getgrent.c



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