From 5150d199b6950ab4620533dabfbcf92098772587 Mon Sep 17 00:00:00 2001 From: kan Date: Sat, 19 May 2007 03:17:00 +0000 Subject: [PATCH] Re-add local FreeBSD change: prefer /tmp to /var/tmp and /usr/tmp for temporary files. --- contrib/gcclibs/libiberty/make-temp-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/gcclibs/libiberty/make-temp-file.c b/contrib/gcclibs/libiberty/make-temp-file.c index 5e21414ad8e..302442f0840 100644 --- a/contrib/gcclibs/libiberty/make-temp-file.c +++ b/contrib/gcclibs/libiberty/make-temp-file.c @@ -111,10 +111,10 @@ choose_tmpdir (void) base = try_dir (P_tmpdir, base); #endif - /* Try /var/tmp, /usr/tmp, then /tmp. */ + /* Try /tmp, /var/tmp, then /usr/tmp. */ + base = try_dir (tmp, base); base = try_dir (vartmp, base); base = try_dir (usrtmp, base); - base = try_dir (tmp, base); /* If all else fails, use the current directory! */ if (base == 0) -- 2.45.0