Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Race condition in changing permissions #1190
Hello, please note that there's a race condition between the time when the key file is created and when the permissions are changed that it is probably visible to some or all users on the system.
The safe way to create a file with restricted permissions is to set the process umask(2) before creating the file. The shell built-in umask(1) command can do this.
The merge of issue-1190 branch has fixed this problem: before running
Leaving the issue open, though, until there is a release with the fix included.