This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fastjar: fix to PR java/3949
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Fastjar: fix to PR java/3949
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 28 Aug 2001 18:34:01 -0700 (PDT)
- Reply-To: apbianco at cygnus dot com
This fixes java/3949. I'm checking this in.
./A
2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
* jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
Fixes PR java/3949.
Index: jartool.c
===================================================================
RCS file: /cvs/gcc/gcc/fastjar/jartool.c,v
retrieving revision 1.7
diff -u -p -r1.7 jartool.c
--- jartool.c 2001/08/27 23:09:37 1.7
+++ jartool.c 2001/08/29 01:33:40
@@ -803,6 +803,7 @@ int add_to_jar(int fd, const char *new_d
if(stat_return == -1){
perror(file);
+ return 1;
} else if(S_ISDIR(statbuf.st_mode)){
char *fullname;
char *t_ptr;