Here it is, ended up being a bit more work than I imagined. Thanks to Diego and “Zipheir” on IRC for inspiration and advice.
0001-Fix-race-in-create-temporary-file-directory.patch
Description: Binary data
> On 18 Sep 2026, at 19:11, Felix Winkelmann <[email protected]> > wrote: > > On Fri Sep 18, 2026 at 3:13 PM CEST, Stanislav Kljuhhin wrote: >> It’s not too difficult to implement, something like that in file.scm: >> [...] >> >> One could also hypothesise that call-with-temporary-file has the right to >> exist as well, >> giving access to the port and the underlying fd. >> >> Let’s see what Felix thinks. If he says that either is worth doing, I will >> be happy >> to make the patch. > > I'd appreciate that, including a call-with-temporary-file. Thanks for > the offer! > > > cheers, > felix >
