git-svn: trunk@3681
@@ -1,3 +1,7 @@
+Wed Feb 27 12:17:19 CET 2008 (tk)
+---------------------------------
+ * libclamav/untar.c: fix fd check
+
Wed Feb 27 09:29:23 GMT 2008 (njh)
---------------------------------
* libclamav/vba_extract.c: Minor code tidy
@@ -169,7 +169,7 @@ cli_untar(const char *dir, int desc, unsigned int posix, cli_ctx *ctx)
size = octal(osize);
if(size < 0) {
cli_errmsg("Invalid size in tar header\n");
- if(fout)
+ if(fout>=0)
close(fout);
return CL_CLEAN;
}