Skip to content

When creating temporary files, prevent overwriting#200

Merged
wofr06 merged 1 commit intowofr06:lesspipefrom
mavit:no-clobber-nexttmp
Apr 16, 2026
Merged

When creating temporary files, prevent overwriting#200
wofr06 merged 1 commit intowofr06:lesspipefrom
mavit:no-clobber-nexttmp

Conversation

@mavit
Copy link
Copy Markdown
Contributor

@mavit mavit commented Apr 16, 2026

This is probably unnecessary, since we’re already using our own directory, but better safe than sorry.

This is probably unnecessary, since we’re already using our own directory, but better safe than sorry.
@wofr06
Copy link
Copy Markdown
Owner

wofr06 commented Apr 16, 2026

Yes, agreed. And this code in nexttmp ensures, that the extracted file gets the same ending as in the archive. Unfortunately a more elegant code is not possible, as mktemp in MacOS is less configurable.

@wofr06 wofr06 closed this Apr 16, 2026
@wofr06 wofr06 reopened this Apr 16, 2026
@wofr06 wofr06 merged commit 02fd624 into wofr06:lesspipe Apr 16, 2026
2 checks passed
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