summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorIgnacy Gawędzki <ignacy.gawedzki@green-communications.fr>2017-06-08 22:00:47 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-06-08 22:04:28 +0200
commit8976b42181f1f5b47a8fe97ec8a77c0071d0362a (patch)
tree69230c8f82e59e9b007e6bfc65c325b73a85bc06 /libc/stdlib
parent2bce688bb90c27deb0c57b81b9fa0059ea04a271 (diff)
Fix mkostemp64 creation mode.
All flavors of mkstemp create files with mode S_IRUSR | S_IWUSR, as per POSIX.1-2008. Make mkostemp64 follow that too instead of creating files with mode S_IRUSR | S_IWUSR | S_IXUSR. Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/mkostemp64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/mkostemp64.c b/libc/stdlib/mkostemp64.c
index 25595ad96..aa9736cd6 100644
--- a/libc/stdlib/mkostemp64.c
+++ b/libc/stdlib/mkostemp64.c
@@ -28,5 +28,5 @@ int
mkostemp64 (char *template, int flags)
{
return __gen_tempname (template, __GT_BIGFILE, flags | O_LARGEFILE, 0,
- S_IRUSR | S_IWUSR | S_IXUSR);
+ S_IRUSR | S_IWUSR);
}