java/src/org/openantivirus/engine/vfs/container CompressedContainerFactory.java,1.2,1.3

Kurt Huwig <[email protected]> Sun, 23 May 2004 15:22:39 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/vfs/container
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7543/src/org/openantivirus/engine/vfs/container

Modified Files:
	CompressedContainerFactory.java 
Log Message:
LZO is a compressor
output uudecode -> uuencode to make all decompressors similar

Index: CompressedContainerFactory.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/vfs/container/CompressedContainerFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CompressedContainerFactory.java	23 May 2004 14:39:19 -0000	1.2
+++ CompressedContainerFactory.java	23 May 2004 15:22:36 -0000	1.3
@@ -333,7 +333,7 @@
         
         // UUENCODE
         if (startsWithMagic(start, UUENC_MAGIC)) {
-            return new SingleFileContainer(entry, "uudecode", configuration) {
+            return new SingleFileContainer(entry, "uuencode", configuration) {
                 public void extractFile(VfsEntry entry, File tempFile)
                 throws IOException {
                     runCommand(new String[] {
@@ -398,14 +398,15 @@
         
         // LZO
         if (startsWithMagic(start, LZO_MAGIC)) {
-            return new ArchiveContainer(entry, " >> lzo:", configuration) {
-                public void extractArchive(VfsEntry entry, File tempDir)
+            return new SingleFileContainer(entry, "lzop", configuration) {
+                public void extractFile(VfsEntry entry, File tempFile)
                 throws IOException {
                     runCommand(new String[] {
-                               "lzop",
-                               "-x",
-                               entry.getFile().getCanonicalPath()},
-                               tempDir);
+                                          "lzop",
+                                          "-d",
+                                          "-c",
+                                          entry.getFile().getCanonicalPath()},
+                               tempFile);
                 }
             };
         }



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click