Browse code

properly handle .pdb files

git-svn: trunk@2311

Tomasz Kojm authored on 2006/09/27 16:33:44
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Sep 27 09:32:40 CEST 2006 (tk)
2
+----------------------------------
3
+  * sigtool/sigtool.c: properly handle .pdb files
4
+
1 5
 Wed Sep 27 02:34:00 CEST 2006 (tk)
2 6
 ----------------------------------
3 7
   * libclamav: add support for PE section based MD5 signatures (stored in .mdb)
... ...
@@ -270,7 +270,7 @@ static int writeinfo(const char *db, const char *header)
270 270
 	int i;
271 271
 	struct stat sb;
272 272
 	char file[32], *md5;
273
-	char *extlist[] = { "db", "fp", "hdb", "mdb", "ndb", "rmd", "zmd", "sdb", NULL };
273
+	char *extlist[] = { "db", "fp", "hdb", "mdb", "ndb", "pdb", "rmd", "zmd", "sdb", NULL };
274 274
 
275 275
 
276 276
     snprintf(file, sizeof(file), "%s.info", db);
... ...
@@ -347,6 +347,7 @@ static int build(struct optstruct *opt)
347 347
        stat("main.hdb", &foo) == -1 && stat("daily.hdb", &foo) == -1 &&
348 348
        stat("main.mdb", &foo) == -1 && stat("daily.mdb", &foo) == -1 &&
349 349
        stat("main.ndb", &foo) == -1 && stat("daily.ndb", &foo) == -1 &&
350
+       stat("main.pdb", &foo) == -1 && stat("daily.pdb", &foo) == -1 &&
350 351
        stat("main.sdb", &foo) == -1 && stat("daily.sdb", &foo) == -1 &&
351 352
        stat("main.zmd", &foo) == -1 && stat("daily.zmd", &foo) == -1 &&
352 353
        stat("main.rmd", &foo) == -1 && stat("daily.rmd", &foo) == -1)
... ...
@@ -484,11 +485,8 @@ static int build(struct optstruct *opt)
484 484
 				 "daily.sdb", "main.zmd", "daily.zmd",
485 485
 				 "main.rmd", "daily.rmd", "main.fp",
486 486
 				 "daily.fp", "main.mdb", "daily.mdb",
487
-				 "daily.info", "main.info",
488
-#ifdef CL_EXPERIMENTAL
489
-				 /* TODO: add support for main.[wp]db */
490
-				 "daily.wdb","daily.pdb",
491
-#endif
487
+				 "daily.info", "main.info", "main.wdb",
488
+				 "daily.wdb", "main.pdb", "daily.pdb",
492 489
 				 NULL };
493 490
 		args[2] = tarfile;
494 491
 		if(!opt_check(opt, "debug")) {