From 8976b42181f1f5b47a8fe97ec8a77c0071d0362a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacy=20Gaw=C4=99dzki?= Date: Thu, 8 Jun 2017 22:00:47 +0200 Subject: Fix mkostemp64 creation mode. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- libc/stdlib/mkostemp64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3