message: util: Check for file being NULL in DirectoryCommit
diff: @@ -1071,8 +1071,10 @@ void DirectoryCommit(const fs::path &dirname)
  {
  #ifndef WIN32
  FILE* file = fsbridge::fopen(dirname, "r");
  + if (file) {
  fsync(fileno(file));
  fclose(file);
  + }
  #endif
  }
  