]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/file.c
Remove macro S_IRWUG
[empserver] / src / lib / common / file.c
index 908b024b7051e0cea7ce1871a4e35f5889ef8bbf..eee28cef446dfbc775f0864c0f56dfe6db1f2174 100644 (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;
     }