Skip to content

Commit

Permalink
fix the proc bug, closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
01micko committed Jan 2, 2021
1 parent 39da5ce commit b139af8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ROX-Filer/src/xdgmime.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ xdg_mime_get_mime_type_for_file (const char *file_name,
statbuf = &buf;
}

if (statbuf->st_size == 0)
return XDG_MIME_TYPE_EMPTY;

if (!S_ISREG (statbuf->st_mode))
return XDG_MIME_TYPE_UNKNOWN;

Expand Down

0 comments on commit b139af8

Please sign in to comment.