Patch: FYI: classify_zip_file fixlet

Tom Tromey tromey@redhat.com
Mon Nov 10 22:12:00 GMT 2003


I'm checking this in on the trunk.

This fixes an oversight in classify_zip_file; now we check for the
correct filename_length.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* jcf-parse.c (classify_zip_file): Correctly compare
	filename_length against length of manifest file's name.

Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.152
diff -u -r1.152 jcf-parse.c
--- jcf-parse.c 8 Nov 2003 20:44:04 -0000 1.152
+++ jcf-parse.c 10 Nov 2003 22:10:28 -0000
@@ -1173,7 +1173,7 @@
     return 1;
 
   /* For now we drop the manifest, but not other information.  */
-  if (zdir->filename_length > 8
+  if (zdir->filename_length == 20
       && !strncmp (class_name_in_zip_dir, "META-INF/MANIFEST.MF", 20))
     return 0;
 



More information about the Java-patches mailing list