Skip to content

Commit

Permalink
Merge pull request #449 from rgooch/tmp
Browse files Browse the repository at this point in the history
Fix imaginator to fail if umask!=022.
  • Loading branch information
rgooch authored May 23, 2018
2 parents 69987b7 + 3b02672 commit a72a5d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/imaginator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func main() {
os.Exit(1)
}
logger := serverlogger.New("")
if umask := syscall.Umask(022); umask != 022 {
// Since we can't cleanly fix umask for all threads, fail instead.
logger.Fatalf("Umask must be 022, not 0%o\n", umask)
}
if err := setupserver.SetupTls(); err != nil {
logger.Fatalln(err)
}
Expand Down

0 comments on commit a72a5d6

Please sign in to comment.