Commit 71a9887
authored
fix: try to avoid creating temp dirs in the current working directory (#571)
Try to use `mktemp -d` before falling back to calling mktemp with an
explicit template (for compat. with some BSD variants of mktemp
(see #176)).
Testing shows shows that this fixes temp dirs being created in the
current working directory on systems using a recent current GNU
coreutils mktemp variant and on systems using the mktemp variant
packaged with some macOS versions (e.g. 10.15). This may also fix the
issue on other systems as well (see
https://stackoverflow.com/a/2792789).1 parent a11ba7f commit 71a9887
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| |||
0 commit comments