diff options
-rw-r--r-- | degesch.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -11251,7 +11251,10 @@ display_full_log (struct app_context *ctx) static bool dump_input_to_file (struct app_context *ctx, char *template, struct error **e) { + mode_t mask = umask (S_IXUSR | S_IRWXG | S_IRWXO); int fd = mkstemp (template); + (void) umask (mask); + if (fd < 0) FAIL ("%s", strerror (errno)); |