Browse Source

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>
Ignacy Gawędzki 7 years ago
parent
commit
8976b42181
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/stdlib/mkostemp64.c

+ 1 - 1
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);
 }