projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27aa805
)
Fix broken umask (we had the bits inverted).
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Thu, 15 Aug 2013 17:40:08 +0000
(19:40 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Thu, 15 Aug 2013 17:40:08 +0000
(19:40 +0200)
util.cpp
patch
|
blob
|
history
diff --git
a/util.cpp
b/util.cpp
index
1b76962
..
25a8da4
100644
(file)
--- 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(0
600
);
+ mode_t old_umask = umask(0
77
);
int fd = mkstemp(filename);
umask(old_umask);
if (fd == -1) {