skip all files inside multi-volume solid archives

git-svn: trunk@2884
remotes/push_mirror/metadata
Tomasz Kojm 18 years ago
parent 1299feef6d
commit 9d4d292a56
  1. 5
      ChangeLog
  2. 3
      libclamav/unrar/unrar.c

@ -1,3 +1,8 @@
Thu Mar 1 11:43:07 CET 2007 (tk)
---------------------------------
* libclamav/unrar/unrar.c: skip all files inside multi-volume solid archives
(but still scan their metadata)
Thu Mar 1 09:10:04 GMT 2007 (njh)
----------------------------------
* libclamav/pdf.c: Try with both real and calculated Length fields, since

@ -1610,6 +1610,9 @@ int cli_unrar_extract_next(rar_state_t* state,const char* dirname)
} else if(state->file_header->flags & (LHD_SPLIT_BEFORE | LHD_SPLIT_AFTER)) {
cli_dbgmsg("Skipping split file\n");
} else if((state->main_hdr->flags & MHD_VOLUME) && (state->main_hdr->flags && MHD_SOLID)) {
cli_dbgmsg("Skipping file inside multi-volume solid archive\n");
} else /*if (file_header->unpack_size)*/ {
snprintf(state->filename, 1024, "%s/%lu.ura", dirname, state->file_count);
ofd = open(state->filename, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0600);

Loading…
Cancel
Save