Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2003 10:27:05 -0700 (PDT)
From:      Jacques Vidrine <nectar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/gen getpwent.c
Message-ID:  <200304181727.h3IHR5bN011320@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
nectar      2003/04/18 10:27:05 PDT

  FreeBSD src repository

  Modified files:
    lib/libc/gen         getpwent.c 
  Log:
  Don't use `memset' to initialize a struct passwd.  A module
  may not fill in all fields, and in the case of string fields, this could
  cause trouble for applications.  (The only likely example is `pw_class',
  because this field is not used by all modules in all cases.)
  
  Move initialization of struct passwd from module-specific code to the
  dispatch code.
  
  The problem of a NULL pw_class was
  Noticed by:     Philip Paeps <philip@paeps.cx>
                      and the c^Htrusty ssh(1) command.
  Déjà vu by:     getpwent.c revision 1.56
  
  Sponsored by:   DARPA, Network Associates Laboratories
  
  Revision  Changes    Path
  1.74      +31 -6     src/lib/libc/gen/getpwent.c



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