From owner-cvs-all Tue Sep 19 20: 5:40 2000 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 35A5A37B423; Tue, 19 Sep 2000 20:05:38 -0700 (PDT) Received: (from brian@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA32271; Tue, 19 Sep 2000 20:05:38 -0700 (PDT) (envelope-from brian@FreeBSD.org) Message-Id: <200009200305.UAA32271@freefall.freebsd.org> From: Brian Somers Date: Tue, 19 Sep 2000 20:05:38 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib malloc.c setenv.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG brian 2000/09/19 20:05:38 PDT Modified files: lib/libc/stdlib malloc.c setenv.c Log: Only realloc() environ if we're sure that we know where it came from. The recent problems with sshd were due to sshd reassigning `environ' when setenv() thinks it owns it. setenv() subsequently realloc()s the new version of environ and *boom* Revision Changes Path 1.52 +2 -1 src/lib/libc/stdlib/malloc.c 1.6 +5 -6 src/lib/libc/stdlib/setenv.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message