mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-22 23:26:11 -08:00
Although glibc's implementation of mkstemp creates temporary files with a safe (i.e. 0600) mode, POSIX does not mandate any particular mode. So to ensure maximum cross-platform safety, we must set a umask of 0077 before calling mkstemp.
2.3 KiB
2.3 KiB