diff options
author | kan <kan@FreeBSD.org> | 2007-05-19 03:17:00 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2007-05-19 03:17:00 +0000 |
commit | 5150d199b6950ab4620533dabfbcf92098772587 (patch) | |
tree | 0e6817614abdaba38829b2d5c3a340e6d7c68774 /contrib | |
parent | cd1d71d72c6580b1cabc1eb2d9c918553dce5037 (diff) | |
download | FreeBSD-src-5150d199b6950ab4620533dabfbcf92098772587.zip FreeBSD-src-5150d199b6950ab4620533dabfbcf92098772587.tar.gz |
Re-add local FreeBSD change: prefer /tmp to /var/tmp and /usr/tmp
for temporary files.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcclibs/libiberty/make-temp-file.c | 4 |
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) |