Remove macro S_IRWUG
Use its expansion instead.
This commit is contained in:
parent
1c08ccf25b
commit
c665c83ba4
5 changed files with 8 additions and 9 deletions
|
@ -87,7 +87,8 @@ ef_open(int type, int how, int nelt)
|
|||
#if defined(_WIN32)
|
||||
oflags |= O_BINARY;
|
||||
#endif
|
||||
if ((fd = open(ep->file, oflags, S_IRWUG)) < 0) {
|
||||
fd = open(ep->file, oflags, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
||||
if (fd < 0) {
|
||||
logerror("Can't open %s (%s)", ep->file, strerror(errno));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue