diff options
| author | Xin LI <delphij@FreeBSD.org> | 2015-06-10 19:06:05 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2015-06-10 19:06:05 +0000 |
| commit | 76c08169d47becb14ee96abce87cb4167fd159f9 (patch) | |
| tree | 683691b945591f3b3198540865fd167c1cc12a2f /src/is_tar.c | |
| parent | 7e650197bfa22668160695ec55b6ed3e3da63f43 (diff) | |
Diffstat (limited to 'src/is_tar.c')
| -rw-r--r-- | src/is_tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/is_tar.c b/src/is_tar.c index 876c631bfdcbc..a3e5dbf24c36c 100644 --- a/src/is_tar.c +++ b/src/is_tar.c @@ -40,7 +40,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: is_tar.c,v 1.37 2010/11/30 14:58:53 rrt Exp $") +FILE_RCSID("@(#)$File: is_tar.c,v 1.38 2015/04/09 20:01:41 christos Exp $") #endif #include "magic.h" @@ -69,7 +69,7 @@ file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) int tar; int mime = ms->flags & MAGIC_MIME; - if ((ms->flags & MAGIC_APPLE) != 0) + if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) return 0; tar = is_tar(buf, nbytes); |
