...
|
...
|
@@ -1757,27 +1757,27 @@ static int cli_scanraw(int desc, cli_ctx *ctx, cli_file_t type, uint8_t typercg,
|
1757
|
1757
|
if(fpt->offset) switch(fpt->type) {
|
1758
|
1758
|
case CL_TYPE_RARSFX:
|
1759
|
1759
|
cli_dbgmsg("RAR/RAR-SFX signature found at %u\n", (unsigned int) fpt->offset);
|
1760
|
|
- if(type != CL_TYPE_RAR && have_rar && SCAN_ARCHIVE && fpt->offset < 102400 && (DCONF_ARCH & ARCH_CONF_RAR)) {
|
|
1760
|
+ if(type != CL_TYPE_RAR && have_rar && SCAN_ARCHIVE && (DCONF_ARCH & ARCH_CONF_RAR)) {
|
1761
|
1761
|
cli_dbgmsg("RAR/RAR-SFX signature found at %u\n", (unsigned int) fpt->offset);
|
1762
|
1762
|
nret = cli_scanrar(desc, ctx, fpt->offset, &lastrar);
|
1763
|
1763
|
}
|
1764
|
1764
|
break;
|
1765
|
1765
|
|
1766
|
1766
|
case CL_TYPE_ZIPSFX:
|
1767
|
|
- if(type != CL_TYPE_ZIP && SCAN_ARCHIVE && fpt->offset < 102400 && (DCONF_ARCH & ARCH_CONF_ZIP)) {
|
|
1767
|
+ if(type != CL_TYPE_ZIP && SCAN_ARCHIVE && (DCONF_ARCH & ARCH_CONF_ZIP)) {
|
1768
|
1768
|
cli_dbgmsg("ZIP/ZIP-SFX signature found at %u\n", (unsigned int) fpt->offset);
|
1769
|
1769
|
nret = cli_unzip_single(desc, ctx, fpt->offset);
|
1770
|
1770
|
}
|
1771
|
1771
|
break;
|
1772
|
1772
|
|
1773
|
1773
|
case CL_TYPE_CABSFX:
|
1774
|
|
- if(type != CL_TYPE_MSCAB && SCAN_ARCHIVE && fpt->offset < 102400 && (DCONF_ARCH & ARCH_CONF_CAB)) {
|
|
1774
|
+ if(type != CL_TYPE_MSCAB && SCAN_ARCHIVE && (DCONF_ARCH & ARCH_CONF_CAB)) {
|
1775
|
1775
|
cli_dbgmsg("CAB/CAB-SFX signature found at %u\n", (unsigned int) fpt->offset);
|
1776
|
1776
|
nret = cli_scanmscab(desc, ctx, fpt->offset);
|
1777
|
1777
|
}
|
1778
|
1778
|
break;
|
1779
|
1779
|
case CL_TYPE_ARJSFX:
|
1780
|
|
- if(type != CL_TYPE_ARJ && SCAN_ARCHIVE && fpt->offset < 102400 && (DCONF_ARCH & ARCH_CONF_ARJ)) {
|
|
1780
|
+ if(type != CL_TYPE_ARJ && SCAN_ARCHIVE && (DCONF_ARCH & ARCH_CONF_ARJ)) {
|
1781
|
1781
|
cli_dbgmsg("ARJ-SFX signature found at %u\n", (unsigned int) fpt->offset);
|
1782
|
1782
|
nret = cli_scanarj(desc, ctx, fpt->offset, &lastrar);
|
1783
|
1783
|
}
|