Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2009 05:04:31 +0000 (UTC)
From:      Brian Feldman <green@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/stdlib getenv.c src/tools/regression/environ Makefile.envctl envctl.c envtest.t
Message-ID:  <200912010508.nB158FFr081926@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
green       2009-12-01 05:04:31 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      getenv.c 
    tools/regression/environ Makefile.envctl envctl.c envtest.t 
  Log:
  SVN rev 199983 on 2009-12-01 05:04:31Z by green
  
  Do not gratuitously fail *env(3) operations due to corrupt ('='-less)
  **environ entries.  This puts non-getenv(3) operations in line with
  getenv(3) in that bad environ entries do not cause all operations to
  fail.  There is still some inconsistency in that getenv(3) in the
  absence of any environment-modifying operation does not emit corrupt
  environ entry warnings.
  
  I also fixed another inconsistency in getenv(3) where updating the
  global environ pointer would not be reflected in the return values.
  It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3)
  in order to see the change.
  
  Revision  Changes    Path
  1.16      +36 -28    src/lib/libc/stdlib/getenv.c
  1.2       +1 -1      src/tools/regression/environ/Makefile.envctl
  1.7       +29 -2     src/tools/regression/environ/envctl.c
  1.5       +15 -0     src/tools/regression/environ/envtest.t



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