Rustix on Haiku doesn't support CWD, so use the non-at versions of functions, since tempfile was only ever passing CWD to them.
For link, switch to std::fs::hard_link, since the link function has platform-dependent behavior and std has code to deal with that. This should also help portability to some platforms which lack linkat.
Rustix on Haiku doesn't support
CWD
, so use the non-at
versions of functions, since tempfile was only ever passingCWD
to them.For
link
, switch tostd::fs::hard_link
, since thelink
function has platform-dependent behavior and std has code to deal with that. This should also help portability to some platforms which lacklinkat
.