From 4a33511c426ae90abb261f09fda1e31e0c30ca16 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 15 Aug 2013 19:40:08 +0200 Subject: [PATCH 1/1] Fix broken umask (we had the bits inverted). --- util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index 1b76962..25a8da4 100644 --- a/util.cpp +++ b/util.cpp @@ -13,7 +13,7 @@ using namespace std; int make_tempfile(const std::string &contents) { char filename[] = "/tmp/cubemap.XXXXXX"; - mode_t old_umask = umask(0600); + mode_t old_umask = umask(077); int fd = mkstemp(filename); umask(old_umask); if (fd == -1) { -- 2.39.2