mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
io: don't set the executable bit when creating files
Issue seems to have been introduced in 0bef93bf24def68c448af0e71844b942e0ed93ec.
This commit is contained in:
parent
208a4d026c
commit
da9f892f20
4
xmlIO.c
4
xmlIO.c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user