summaryrefslogtreecommitdiff
path: root/src/modules/access_output/mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/access_output/mod.c')
-rw-r--r--src/modules/access_output/mod.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/access_output/mod.c b/src/modules/access_output/mod.c
index 3956a402b..91e5bb2d2 100644
--- a/src/modules/access_output/mod.c
+++ b/src/modules/access_output/mod.c
@@ -63,9 +63,12 @@ out_read(const char *txt)
63 if (!tmpf) 63 if (!tmpf)
64 { 64 {
65 char buf[PATH_MAX]; 65 char buf[PATH_MAX];
66 mode_t cur_umask;
66 67
67 snprintf(buf, sizeof(buf), "/tmp/.elm-speak-XXXXXX"); 68 snprintf(buf, sizeof(buf), "/tmp/.elm-speak-XXXXXX");
69 cur_umask = umask(S_IRWXO | S_IRWXG);
68 tmpfd = mkstemp(buf); 70 tmpfd = mkstemp(buf);
71 umask(cur_umask);
69 if (tmpfd >= 0) tmpf = strdup(buf); 72 if (tmpfd >= 0) tmpf = strdup(buf);
70 else return; 73 else return;
71 } 74 }