Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2002 13:25:15 -0700 (PDT)
From:      Bruce Evans <bde@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_environment.c
Message-ID:  <200204252025.g3PKPFl67238@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         2002/04/25 13:25:15 PDT

  Modified files:
    sys/kern             kern_environment.c 
  Log:
  Fixed some longstanding bugs in _getenv_static():
  - malformed environment strings (ones without an '=') were not rejected.
    There shouldn't be any of these, but when the static environment is
    empty it always begins with one of these; this one should be considered
    as the terminator after the end of the environment, but it isn't.
  - the comparison of the name being looked up with the name in the
    environment was fuzzy -- only the characters up to the length of the
    latter were compared, so _getenv_static("foobar") matched "foo=..."
    in the environment and everything matched "" in the empty environment.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.23      +4 -3      src/sys/kern/kern_environment.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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