mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-07 07:06:20 -04:00
fix fd handling (thanks Edwin)
git-svn: trunk@3580
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Mon Feb 4 11:15:28 CET 2008 (tk)
|
||||
---------------------------------
|
||||
* libclamav/cab.c: fix fd handling (thanks Edwin)
|
||||
|
||||
Sun Feb 3 21:23:01 EET 2008 (edwin)
|
||||
------------------------------------
|
||||
* clamav-milter: use cli_ctime()
|
||||
|
||||
@@ -648,6 +648,20 @@ static int cab_unstore(struct cab_file *file, int bytes)
|
||||
return CL_EMSCAB; \
|
||||
} \
|
||||
file->cab->actfol = file->folder; \
|
||||
} else { \
|
||||
if(file->cab->state && file->cab->state->stream) { \
|
||||
switch(file->cab->state->cmethod & 0x000f) { \
|
||||
case 0x0001: \
|
||||
((struct mszip_stream *) file->cab->state->stream)->ofd = file->ofd; \
|
||||
break; \
|
||||
case 0x0002: \
|
||||
((struct qtm_stream *) file->cab->state->stream)->ofd = file->ofd; \
|
||||
break; \
|
||||
case 0x0003: \
|
||||
((struct lzx_stream *) file->cab->state->stream)->ofd = file->ofd; \
|
||||
break; \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user