Remove macro S_IRWUG

Use its expansion instead.
This commit is contained in:
Markus Armbruster 2009-04-13 17:27:08 +02:00
parent 1c08ccf25b
commit c665c83ba4
5 changed files with 8 additions and 9 deletions

View file

@ -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;
}