From owner-freebsd-stable Mon Oct 15 20:53:44 2001 Delivered-To: freebsd-stable@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id AC61C37B401 for ; Mon, 15 Oct 2001 20:53:41 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f9G3rZV07736; Mon, 15 Oct 2001 21:53:35 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id f9G3rO728525; Mon, 15 Oct 2001 21:53:34 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200110160353.f9G3rO728525@harmony.village.org> To: Heath Nielson Subject: Re: setenv() cores with NULL value [was Re: Gdm proplem on 4.4] Cc: David Marker , freebsd-stable@FreeBSD.ORG In-reply-to: Your message of "Mon, 15 Oct 2001 18:37:25 MDT." References: Date: Mon, 15 Oct 2001 21:53:24 -0600 From: Warner Losh Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message Heath Nielson writes: : FreeBSD doesn't like a NULL value. There was no mention of NULL input : values in the man page. It seems that a NULL value is valid. I can type : export TEST= at the prompt without any errors, but I'm no shell expert. : Maybe the TEST env. variable's value isn't really NULL. Does anyone else : have anything to add to this? NULL isn't allowed to be passed to getenv. That is a programming error. You get unpredictable results. We nicely give you a core file so you can debug your error. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message