summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/gcclibs/libiberty/make-temp-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcclibs/libiberty/make-temp-file.c b/contrib/gcclibs/libiberty/make-temp-file.c
index 5e21414..302442f 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)
OpenPOWER on IntegriCloud