cvs commit: src/lib/libc/stdlib getenv.c

Sean Farley scf at FreeBSD.org
Sat Sep 15 14:48:55 PDT 2007


scf         2007-09-15 21:48:55 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      getenv.c 
  Log:
  Skip rebuilding environ in setenv() only upon reuse of an active variable;
  inactive variables should cause a rebuild of environ, otherwise, exec()'d
  processes will be missing a variable in environ that has been unset then
  set.
  
  Submitted by:   Taku Yamamoto <taku at tackymt.homeip.net>
  Reviewed by:    ache
  Approved by:    wes (mentor)
  Approved by:    re (kensmith)
  
  Revision  Changes    Path
  1.11      +2 -2      src/lib/libc/stdlib/getenv.c


More information about the cvs-src mailing list