* lib/fopen.c (rpl_open): Pass a third argument to open().
+2020-07-28 Bruno Haible <bruno@clisp.org>
+
+ fopen-gnu: Create files correctly (regression from 2020-05-24).
+ * lib/fopen.c (rpl_open): Pass a third argument to open().
+
2020-07-27 Paul Eggert <eggert@cs.ucla.edu>
xalloc-die: don’t depend on xalloc
return NULL;
}
- fd = open (filename, open_direction | open_flags);
+ fd = open (filename, open_direction | open_flags,
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
if (fd < 0)
return NULL;
int fd;
FILE *fp;
- fd = open (filename, open_direction | open_flags);
+ fd = open (filename, open_direction | open_flags,
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
if (fd < 0)
return NULL;