java/3949: fastjar exits success if @file not found
Alexandre Petit-Bianco
apbianco@cygnus.com
Wed Aug 15 13:46:00 GMT 2001
The following reply was made to PR java/3949; it has been noted by GNATS.
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: pimlott@idiomtech.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/3949: fastjar exits success if @file not found
Date: Wed, 15 Aug 2001 13:45:20 -0700 (PDT)
pimlott@idiomtech.com writes:
> however, the report is still a bug, because the problem should be
> reflected in the exit status.
Thanks. I'll be checking this in shortly.
./A
2001-08-15 Alexandre Petit-Bianco <apbianco@redhat.com>
* jartool.c (add_to_jar): Return 1 if stat initialy failed.
Fixes java/3949.
Index: jartool.c
===================================================================
RCS file: /cvs/gcc/gcc/fastjar/jartool.c,v
retrieving revision 1.6
diff -u -p -r1.6 jartool.c
--- jartool.c 2001/07/04 18:33:53 1.6
+++ jartool.c 2001/08/15 20:44:15
@@ -799,6 +799,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;
More information about the Gcc-prs
mailing list