You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
535 B
14 lines
535 B
3 years ago
|
diff --git a/sed/utils.c b/sed/utils.c
|
||
|
index 4028d98..2e74654 100644
|
||
|
--- a/sed/utils.c
|
||
|
+++ b/sed/utils.c
|
||
|
@@ -181,7 +181,7 @@ ck_mkstemp (char **p_filename, const char *tmpdir,
|
||
|
/* The ownership might change, so omit some permissions at first
|
||
|
so unauthorized users cannot nip in before the file is ready.
|
||
|
mkstemp forces O_BINARY on cygwin, so use mkostemp instead. */
|
||
|
- mode_t save_umask = umask (0700);
|
||
|
+ mode_t save_umask = umask (0077);
|
||
|
int fd = mkostemp (template, 0);
|
||
|
umask (save_umask);
|
||
|
if (fd == -1)
|