Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2010 15:40:59 +0300
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        Hartmut Brandt <harti@FreeBSD.ORG>
Cc:        svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG
Subject:   Re: svn commit: r202070 - head/usr.bin/make
Message-ID:  <20100111124059.GA57742@nagual.pp.ru>
In-Reply-To: <201001110916.o0B9Gg1A012733@svn.freebsd.org>
References:  <201001110916.o0B9Gg1A012733@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 11, 2010 at 09:16:42AM +0000, Hartmut Brandt wrote:
> @@ -1807,8 +1807,6 @@ JobStart(GNode *gn, int flags, Job *prev
>  		} else {
>  			fprintf(stdout, "Remaking `%s'\n", gn->name);
>  			fflush(stdout);
> -			if ((tdir = getenv("TMPDIR")) == NULL)
> -				tdir = TMPDIR;
>  			snprintf(job->outFile, sizeof(job->outFile), "%s/%s",
>  			    tdir, TMPPAT);
>  			if ((job->outFd = mkstemp(job->outFile)) == -1)

With the presence of .EXPORTVAR directive (setenv() called) TMPDIR 
environment can be changed on the fly, so perhaps this lines are for reason.

-- 
http://ache.pp.ru/



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