diff options
author | Clint Adams <clint@debian.org> | 2021-08-31 08:53:23 -0400 |
---|---|---|
committer | Clint Adams <clint@debian.org> | 2021-08-31 08:53:23 -0400 |
commit | c50de48f2ed0b9476c3389fd07a85a5e8be798e2 (patch) | |
tree | 80f254d789336981f5ea660741739f70d46589d5 /sed/utils.c | |
parent | 637a2e292881341dde845545517b0ed3d3ccfc94 (diff) |
New upstream version 4.8
Diffstat (limited to 'sed/utils.c')
-rw-r--r-- | sed/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sed/utils.c b/sed/utils.c index 6f847cd..9576dd1 100644 --- a/sed/utils.c +++ b/sed/utils.c @@ -1,5 +1,5 @@ /* Functions from hack's utils library. - Copyright (C) 1989-2018 Free Software Foundation, Inc. + Copyright (C) 1989-2020 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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) |