cvs commit: src/lib/libc/gen getgrent.c

Maxim Konovalov maxim at FreeBSD.org
Fri Jul 14 17:45:35 UTC 2006


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


More information about the cvs-src mailing list