Re-add local FreeBSD change: prefer /tmp to /var/tmp and /usr/tmp

for temporary files.
This commit is contained in:
kan 2007-05-19 03:17:00 +00:00
parent cd1d71d72c
commit 5150d199b6

View File

@ -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)