diff options
author | Eric Hameleers | 2017-07-09 21:52:00 +0200 |
---|---|---|
committer | Matteo Bernardini | 2021-04-18 12:22:49 +0200 |
commit | 57a75502dd1e88aaa949c0e4c684c10783438f6b (patch) | |
tree | f89001c119e27f1b864355be6da8ecb56735d88b /development/gcc5/fastjar-patches/1001-fastjar-0.97-len1.patch | |
parent | cde5c421d142bb126a1cfe409d0b0ea2bdcf1fa8 (diff) | |
download | slackbuilds-57a75502dd1e88aaa949c0e4c684c10783438f6b.tar.gz |
development/gcc5: Added (gcc version 5 C, C++ and Java compilers).
Signed-off-by: Eric Hameleers <alien@slackware.com>
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/gcc5/fastjar-patches/1001-fastjar-0.97-len1.patch')
-rw-r--r-- | development/gcc5/fastjar-patches/1001-fastjar-0.97-len1.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/development/gcc5/fastjar-patches/1001-fastjar-0.97-len1.patch b/development/gcc5/fastjar-patches/1001-fastjar-0.97-len1.patch new file mode 100644 index 0000000000..722351d334 --- /dev/null +++ b/development/gcc5/fastjar-patches/1001-fastjar-0.97-len1.patch @@ -0,0 +1,16 @@ +2009-12-21 Chris Ball <cjb@laptop.org> + + * jartool.c (add_file_to_jar): Test write return value against -1 + instead of 1. + +--- fastjar-0.97/jartool.c.jj 2008-10-15 12:35:37.000000000 -0400 ++++ fastjar-0.97/jartool.c 2009-12-22 06:48:09.309530000 -0500 +@@ -1257,7 +1257,7 @@ int add_file_to_jar(int jfd, int ffd, co + exit_on_error("write"); + + /* write the file name to the zip file */ +- if (1 == write(jfd, fname, file_name_length)) ++ if (-1 == write(jfd, fname, file_name_length)) + exit_on_error("write"); + + if(verbose){ |