diff options
author | Alexandre Petit-Bianco <apbianco@redhat.com> | 2001-08-28 18:35:32 -0700 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-08-28 18:35:32 -0700 |
commit | 51a25585ff13a61c901698e314cbfc2150028f74 (patch) | |
tree | febf5e4f6ff46001ceb1cdda4ff9ff98a4286e4b /fastjar | |
parent | 533ab4d1f30c320c396db1011a6f2512f667f25b (diff) | |
download | gcc-51a25585ff13a61c901698e314cbfc2150028f74.zip gcc-51a25585ff13a61c901698e314cbfc2150028f74.tar.gz gcc-51a25585ff13a61c901698e314cbfc2150028f74.tar.bz2 |
re PR java/3949 (fastjar exits success if @file not found)
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
Diffstat (limited to 'fastjar')
-rw-r--r-- | fastjar/ChangeLog | 5 | ||||
-rw-r--r-- | fastjar/jartool.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog index 684a0f2..0a6fcd8 100644 --- a/fastjar/ChangeLog +++ b/fastjar/ChangeLog @@ -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. diff --git a/fastjar/jartool.c b/fastjar/jartool.c index f2922bd..150ffdc 100644 --- a/fastjar/jartool.c +++ b/fastjar/jartool.c @@ -17,9 +17,13 @@ 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; |