Skip to content

Commit

Permalink
Merge pull request #1210 from Unity-Technologies/macos-fat32-empty-fi…
Browse files Browse the repository at this point in the history
…le-proper-define

Handle the empty file inode on macOS and FAT32 (with the proper define)
  • Loading branch information
Joshua Peterson authored Jul 30, 2019
2 parents 1da3d5f + 7df88d5 commit 0295d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/metadata/w32file-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ static mode_t convert_perms(guint32 sharemode)

static gboolean already_shared(gboolean file_alread_shared, ino_t inode)
{
#if PLATFORM_MACOSX
#if HOST_DARWIN
/* On macOS and FAT32 partitions, we will sometimes get this inode value
* for more than one file. It means the file is empty (FILENO_EMPTY is
* defined in an internal header). When this happens, the hash table of
Expand Down

0 comments on commit 0295d49

Please sign in to comment.