Re: [PATCH] Fix some temp file issues

2022-10-07 Thread Paul Eggert
On 10/7/22 05:36, Eli Zaretskii wrote: I'd appreciate a more high-level description of the idea of the change, in addition to the gory details. I gave it a shot in the attached patch, which is an improved version of the previous patch. Why !WINDOWS32 here? Earlier versions of the code

Re: [PATCH] Fix some temp file issues

2022-10-07 Thread Eli Zaretskii
> From: Paul Eggert > Cc: Paul Eggert > Date: Fri, 7 Oct 2022 00:02:25 -0700 > > This patch was prompted by a linker warning "warning: the use of > `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'" on > Fedora 36. It also fixes a few unlikely bugs and simplifies the > code in a couple

[PATCH] Fix some temp file issues

2022-10-07 Thread Paul Eggert
This patch was prompted by a linker warning "warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'" on Fedora 36. It also fixes a few unlikely bugs and simplifies the code in a couple of places. * src/misc.c (get_tmpdir): Now extern, for os_anontmp. (get_tmpbase): New