Re-add local FreeBSD change: prefer /tmp to /var/tmp and /usr/tmp
for temporary files.
This commit is contained in:
parent
cd1d71d72c
commit
5150d199b6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user