[uclibc-ng-devel] [PATCH] Fix mkostemp64 creation mode.

Ignacy Gawędzki ignacy.gawedzki at green-communications.fr
Thu Jun 8 22:00:47 CEST 2017


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 at green-communications.fr>
---
 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);
 }
-- 
2.11.0


More information about the devel mailing list