diff options
author | robi <robi> | 2010-10-26 00:23:21 +0000 |
---|---|---|
committer | robi <robi> | 2010-10-26 00:23:21 +0000 |
commit | 6c004176d9bb864e680537ddbf4ad6f852f7b860 (patch) | |
tree | 6451041cc05a4984c5f1fb97dd601116e5573191 /src/magic_block_scan.c | |
parent | a9ece5d3e64fd981545dea282f1e1250d1e8b7ef (diff) |
some file types corrections and additions
Diffstat (limited to 'src/magic_block_scan.c')
-rw-r--r-- | src/magic_block_scan.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/magic_block_scan.c b/src/magic_block_scan.c index 32cc943..afe3273 100644 --- a/src/magic_block_scan.c +++ b/src/magic_block_scan.c @@ -538,7 +538,7 @@ if ((strstr(magic_buf,"application/octet-stream")) && (!(strncmp(text,"text",4)) } if (strstr(magic_buf,"application/octet-stream")){ - char searchstr[] = "7-zip cpio CD-ROM MPEG 9660 Targa Kernel boot SQLite OpenOffice.org "; + char searchstr[] = "7-zip cpio CD-ROM MPEG 9660 Targa Kernel boot SQLite OpenOffice.org VMWare3 VMware4 "; p_search = searchstr; while (*p_search){ len=0; @@ -578,7 +578,11 @@ if ((strstr(magic_buf,"application/octet-stream")) && (!(strncmp(text,"text",4)) else { if (strstr(magic_buf,"image/")){ - retval |= ( M_IMAGE | M_CLASS_1 ); + if (strstr(magic_buf,"x-portable-") && (! isspace( *(buf+2)))){ + retval = M_DATA; + } + else + retval |= ( M_IMAGE | M_CLASS_1 ); goto out; } else { |