]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR java/3949 (fastjar exits success if @file not found)
authorAlexandre Petit-Bianco <apbianco@redhat.com>
Wed, 29 Aug 2001 01:35:32 +0000 (18:35 -0700)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Wed, 29 Aug 2001 01:35:32 +0000 (18:35 -0700)
2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>

* jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
Fixes PR java/3949.

(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01641.html)

From-SVN: r45250

fastjar/ChangeLog
fastjar/jartool.c

index 684a0f2948ef000b9f60d58e8262aa3177c49950..0a6fcd8822ba9cecbb162b191e99d5bad775f5e3 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * jartool.c (add_to_jar): Return 1 if `stat' initialy failed.
+       Fixes PR java/3949.
+
 2001-08-27  Tom Tromey  <tromey@redhat.com>
 
        * jartool.c (jarfile): Remove length limitation.
index f2922bdcb8f50574893577692b9f41a9fa6fd376..150ffdc33dbabdbc74ff43c83f8e9bb068f2806d 100644 (file)
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
-/* $Id: jartool.c,v 1.6 2001/07/04 18:33:53 tromey Exp $
+/* $Id: jartool.c,v 1.7 2001/08/27 23:09:37 tromey Exp $
 
    $Log: jartool.c,v $
+   Revision 1.7  2001/08/27 23:09:37  tromey
+       * jartool.c (jarfile): Remove length limitation.
+       (main): Use jt_strdup when initializing jarfile.
+
    Revision 1.6  2001/07/04 18:33:53  tromey
        Modified from patch by Julian Hall <jules@acris.co.uk>:
        * jartool.c (errno): Conditionally declare.
@@ -799,6 +803,7 @@ int add_to_jar(int fd, const char *new_dir, const char *file){
   
   if(stat_return == -1){
     perror(file);
+    return 1;
   } else if(S_ISDIR(statbuf.st_mode)){
     char *fullname;
     char *t_ptr;