From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Petit-Bianco To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: java/3949: fastjar exits success if @file not found Date: Wed, 15 Aug 2001 13:46:00 -0000 Message-id: <20010815204600.6203.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00420.html List-Id: The following reply was made to PR java/3949; it has been noted by GNATS. From: Alexandre Petit-Bianco 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 * 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;