transparency-dev / trillian-tessera

Go library for building tile-based transparency logs (tlogs)
Apache License 2.0
11 stars 11 forks source link

[POSIX] Refactor and use createExclusive #221

Closed AlCutter closed 2 months ago

AlCutter commented 2 months ago

This PR fixes an issue where files created using createExclusive have 0o600 perms.

This was caused by the use of os.CreateTemp, so we now just create a temporary file manually and Rename it into the target location.

22