* make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
From-SVN: r162379
This commit is contained in:
parent
31d06664e6
commit
79cf762806
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-07-21 Pascal Obry <obry@adacore.com>
|
||||
|
||||
* make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
|
||||
|
||||
2010-07-06 Ken Werner <ken.werner@de.ibm.com>
|
||||
|
||||
* floatformat.c (floatformat_ieee_half_big): New variable.
|
||||
|
|
|
@ -121,7 +121,12 @@ choose_tmpdir (void)
|
|||
#endif
|
||||
|
||||
#ifdef P_tmpdir
|
||||
base = try_dir (P_tmpdir, base);
|
||||
/* We really want a directory name here as if concatenated with say \dir
|
||||
we do not end up with a double \\ which defines an UNC path. */
|
||||
if (strcmp (P_tmpdir, "\\") == 0)
|
||||
base = try_dir ("\\.", base);
|
||||
else
|
||||
base = try_dir (P_tmpdir, base);
|
||||
#endif
|
||||
|
||||
/* Try /var/tmp, /usr/tmp, then /tmp. */
|
||||
|
|
Loading…
Add table
Reference in a new issue