This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: classify_zip_file fixlet
- From: Tom Tromey <tromey at redhat dot com>
- To: GCC libjava patches <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 10 Nov 2003 15:03:30 -0700
- Subject: Patch: FYI: classify_zip_file fixlet
- Reply-to: tromey at redhat dot com
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;