From owner-cvs-all Thu Apr 25 13:25:22 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B6F7137B400; Thu, 25 Apr 2002 13:25:15 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3PKPFl67238; Thu, 25 Apr 2002 13:25:15 -0700 (PDT) (envelope-from bde) Message-Id: <200204252025.g3PKPFl67238@freefall.freebsd.org> From: Bruce Evans Date: Thu, 25 Apr 2002 13:25:15 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_environment.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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