Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Use _PATH_TMP instead of a literal /tmp; noted ...
details: https://anonhg.NetBSD.org/src/rev/ad4c2b0f89ed
branches: trunk
changeset: 754182:ad4c2b0f89ed
user: dholland <dholland%NetBSD.org@localhost>
date: Thu Apr 22 22:39:13 2010 +0000
description:
Use _PATH_TMP instead of a literal /tmp; noted by Christos
diffstat:
usr.bin/make/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 48570e04335c -r ad4c2b0f89ed usr.bin/make/main.c
--- a/usr.bin/make/main.c Thu Apr 22 21:58:08 2010 +0000
+++ b/usr.bin/make/main.c Thu Apr 22 22:39:13 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.181 2010/04/22 20:25:16 dholland Exp $ */
+/* $NetBSD: main.c,v 1.182 2010/04/22 22:39:13 dholland Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.181 2010/04/22 20:25:16 dholland Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.182 2010/04/22 22:39:13 dholland Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
@@ -81,7 +81,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: main.c,v 1.181 2010/04/22 20:25:16 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.182 2010/04/22 22:39:13 dholland Exp $");
#endif
#endif /* not lint */
#endif
@@ -1967,7 +1967,7 @@
* Honor $TMPDIR but only if it is valid.
* Ensure it ends with /.
*/
- tmpdir = Var_Subst(NULL, "${TMPDIR:tA:U/tmp}/", VAR_GLOBAL, 0);
+ tmpdir = Var_Subst(NULL, "${TMPDIR:tA:U" _PATH_TMP "}/", VAR_GLOBAL, 0);
if (stat(tmpdir, &st) < 0 || !S_ISDIR(st.st_mode)) {
free(tmpdir);
tmpdir = bmake_strdup(_PATH_TMP);
Home |
Main Index |
Thread Index |
Old Index