Skip to content

BeefySysLib: implement BfpFile_GetTempPath on POSIX - #2498

Closed
jayrulez wants to merge 1 commit into
beefytech:masterfrom
jayrulez:fix/posix-gettemppath-not-implemented
Closed

jayrulez wants to merge 1 commit into
beefytech:masterfrom
jayrulez:fix/posix-gettemppath-not-implemented

Conversation

@jayrulez

@jayrulez jayrulez commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

It was NOT_IMPL, so Path.GetTempPath returned an empty string on Linux and macOS and every caller composed a path at the filesystem root. corlib's own FileTests.WriteAll_PropagatesResult is one of them, and could not have passed on either platform.

The temp directory was already known to this file: BfpFile_GetTempFileName sits directly below and hardcodes /tmp. This reads TMPDIR first, as POSIX tools do, falls back to the same /tmp, and returns it with a trailing separator to match what the Windows implementation returns from GetTempPathW.

It was NOT_IMPL, so Path.GetTempPath returned an empty string on Linux and macOS
and every caller composed a path at the filesystem root. corlib's own
FileTests.WriteAll_PropagatesResult is one of them, and could not have passed on
either platform.

The temp directory was already known to this file: BfpFile_GetTempFileName sits
directly below and hardcodes /tmp. This reads TMPDIR first, as POSIX tools do,
falls back to the same /tmp, and returns it with a trailing separator to match
what the Windows implementation returns from GetTempPathW.
@bfiete

bfiete commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

You got pipped by this #2492
Resubmit an adjusted PR if you think there's something to add still.

@bfiete bfiete closed this Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants