Browse code

remove support for --unace

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@608 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/06/13 21:33:56
Showing 4 changed files
... ...
@@ -1,3 +1,10 @@
1
+Sun Jun 13 14:26:33 CEST 2004 (tk)
2
+----------------------------------
3
+  * clamscan: --unace is no longer supported (when invoked on a splitted
4
+	      archive with missing components it was waiting for the user
5
+	      to specify where the extra files are, with "-y" even). Problem
6
+	      found by Lloyd Kamara <l.kamara*imperial.ac.uk>)
7
+
1 8
 Sun Jun 13 04:03:01 CEST 2004 (tk)
2 9
 ----------------------------------
3 10
   * freshclam, clamd: log version and platform information (requested by
... ...
@@ -227,7 +227,6 @@ void help(void)
227 227
     mprintf("    --max-recursion=#n                   Maximal recursion level\n");
228 228
     mprintf("    --unzip[=FULLPATH]                   Enable support for .zip files\n");
229 229
     mprintf("    --unrar[=FULLPATH]                   Enable support for .rar files\n");
230
-    mprintf("    --unace[=FULLPATH]                   Enable support for .ace files\n");
231 230
     mprintf("    --arj[=FULLPATH]                     Enable support for .arj files\n");
232 231
     mprintf("    --unzoo[=FULLPATH]                   Enable support for .zoo files\n");
233 232
     mprintf("    --lha[=FULLPATH]                     Enable support for .lha files\n");
... ...
@@ -82,10 +82,9 @@ int scanmanager(const struct optstruct *opt)
82 82
     }
83 83
 #endif
84 84
 
85
-    if(optl(opt, "unzip") || optl(opt, "unrar") || optl(opt, "unace") ||
86
-       optl(opt, "arj") || optl(opt, "unzoo") || optl(opt, "jar") ||
87
-       optl(opt, "lha") || optl(opt, "tar") || optl(opt, "tgz") ||
88
-       optl(opt, "deb"))
85
+    if(optl(opt, "unzip") || optl(opt, "unrar") || optl(opt, "arj") ||
86
+       optl(opt, "unzoo") || optl(opt, "jar") || optl(opt, "lha") ||
87
+       optl(opt, "tar") || optl(opt, "tgz") || optl(opt, "deb"))
89 88
 	    compression = 1;
90 89
 
91 90
     /* now initialize the database */
... ...
@@ -464,7 +463,6 @@ int scanfile(const char *filename, struct cl_node *root, const struct passwd *us
464 464
 
465 465
     if((cli_strbcasestr(filename, ".zip") && optl(opt, "unzip"))
466 466
     || (cli_strbcasestr(filename, ".rar") && optl(opt, "unrar"))
467
-    || (cli_strbcasestr(filename, ".ace") && optl(opt, "unace"))
468 467
     || (cli_strbcasestr(filename, ".arj") && optl(opt, "arj"))
469 468
     || (cli_strbcasestr(filename, ".zoo") && optl(opt, "unzoo"))
470 469
     || (cli_strbcasestr(filename, ".jar") && optl(opt, "jar"))
... ...
@@ -584,13 +582,6 @@ int scancompressed(const char *filename, struct cl_node *root, const struct pass
584 584
 	else
585 585
 	    ret = clamav_unpack("unrar", args, gendir, user, opt);
586 586
 
587
-    } else if(cli_strbcasestr(filename, ".ace")) { 
588
-	char *args[] = { "unace", "x", "-y", (char *) filename, NULL };
589
-	if((userprg = getargl(opt, "unace")))
590
-	    ret = clamav_unpack(userprg, args, gendir, user, opt);
591
-	else
592
-	    ret = clamav_unpack("unace", args, gendir, user, opt);
593
-
594 587
     } else if(cli_strbcasestr(filename, ".arj")) { 
595 588
         char *args[] = { "arj", "x","-y", (char *) filename, NULL };
596 589
         if((userprg = getargl(opt, "arj")))
... ...
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
86 86
 	    {"stdout", 0, 0, 0},
87 87
 	    {"unzip", 2, 0, 0},
88 88
 	    {"unrar", 2, 0, 0},
89
-	    {"unace", 2, 0, 0},
89
+	    {"unace", 2, 0, 0}, /* not used */
90 90
 	    {"unarj", 2, 0, 0}, /* not used */
91 91
 	    {"arj", 2, 0, 0},
92 92
 	    {"zoo", 2, 0, 0}, /* not used */