--- contrib/file/apprentice.c.org 2013-06-18 18:14:45.000000000 +0200 +++ contrib/file/apprentice.c 2013-08-26 12:01:20.000000000 +0200 @@ -2231,7 +2231,7 @@ if (ms->flags & MAGIC_MIME) { asprintf(&buf, "%.*s.mime%s", (int)(q - fn), fn, ext); if (access(buf, R_OK) != -1) { - ms->flags &= MAGIC_MIME_TYPE; + ms->flags &= MAGIC_MIME_TYPE | MAGIC_SYMLINK; return buf; } free(buf); @@ -2240,7 +2240,7 @@ /* Compatibility with old code that looked in .mime */ if (strstr(p, ".mime") != NULL) - ms->flags &= MAGIC_MIME_TYPE; + ms->flags &= MAGIC_MIME_TYPE | MAGIC_SYMLINK; return buf; }