fix FileIO openTempFile on Windows
authorJoey Hess <joeyh@joeyh.name>
Thu, 30 Jan 2025 18:23:00 +0000 (14:23 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 30 Jan 2025 18:32:14 +0000 (14:32 -0400)
commitbd5d2b0782a77f9d1019f1a477e11bd9e0b79297
treeb2cf1bdf5384c9932ec339398d3d7ee598eb2b47
parent97c83152d6739cbf905e09decdc4bbdeab2e0ec2
fix FileIO openTempFile on Windows

When an UNC-style path is passed into openTempFile, the returned file
starts with that same style of path. Which can cause problems, eg piping
that filename to git failed. So, convert the output filename to be
relative to the input temp directory.
Utility/FileIO.hs