split: honor $TMPDIR for temp files
commit464be62df69151c73a387a4e7266b0755f563f2e
authorPádraig Brady <P@draigBrady.com>
Tue, 18 Jul 2023 17:55:30 +0000 (18 18:55 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 18 Jul 2023 22:11:24 +0000 (18 23:11 +0100)
tree814f2842f1df1604f977b1580c6d351e2d52cb4f
parent1b86b70dd5118462ba9388742ebd8459d0b84156
split: honor $TMPDIR for temp files

* bootstrap.conf: Depend on tmpdir rather than tmpfile,
as the standard tmpfile() doesn't honor $TMPDIR.
* src/split.c (copy_to_tmpfile): Adjust to call temp_stream() rather
than tmpfile();
* NEWS: Mention the improvement.
NEWS
bootstrap.conf
src/local.mk
src/split.c