Jinoh Kang (@iamahuman) commented about server/fd.c:
flags &= ~(O_CREAT | O_EXCL | O_TRUNC); }
- if ((access & FILE_UNIX_WRITE_ACCESS) && !(options & FILE_DIRECTORY_FILE))
- if ((access & (FILE_WRITE_DATA|FILE_APPEND_DATA)) &&
I think we should change the definition of `FILE_UNIX_WRITE_ACCESS` instead. It's in server/file.h.