svn commit: r202070 - head/usr.bin/make

Andrey Chernov ache at nagual.pp.ru
Mon Jan 11 12:41:03 UTC 2010


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/


More information about the svn-src-head mailing list