io: don't set the executable bit when creating files

Issue seems to have been introduced in
0bef93bf24def68c448af0e71844b942e0ed93ec.
This commit is contained in:
triallax 2024-08-26 23:53:29 +01:00 committed by Nick Wellnhofer
parent 208a4d026c
commit da9f892f20

View File

@ -536,7 +536,7 @@ xmlFdOpen(const char *filename, int write, int *out) {
flags = _O_WRONLY | _O_CREAT | _O_TRUNC;
else
flags = _O_RDONLY;
fd = _wopen(wpath, flags | _O_BINARY, 0777);
fd = _wopen(wpath, flags | _O_BINARY, 0666);
xmlFree(wpath);
}
#else
@ -544,7 +544,7 @@ xmlFdOpen(const char *filename, int write, int *out) {
flags = O_WRONLY | O_CREAT | O_TRUNC;
else
flags = O_RDONLY;
fd = open(filename, flags, 0777);
fd = open(filename, flags, 0666);
#endif /* WIN32 */
if (fd < 0) {