summaryrefslogtreecommitdiff
path: root/user/fastjar/write-return.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-02-26 19:59:01 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-02-26 20:10:47 +0000
commit3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c (patch)
treee932eedef80099908af90bab35288ff1c2cc0e60 /user/fastjar/write-return.patch
parentfd520b97b23fa444aa97e028b64fce70cd75023c (diff)
downloadpackages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.tar.gz
packages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.tar.bz2
packages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.tar.xz
packages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.zip
user/fastjar: new package
Diffstat (limited to 'user/fastjar/write-return.patch')
-rw-r--r--user/fastjar/write-return.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/fastjar/write-return.patch b/user/fastjar/write-return.patch
new file mode 100644
index 000000000..795179fcd
--- /dev/null
+++ b/user/fastjar/write-return.patch
@@ -0,0 +1,15 @@
+From: Chris Ball <cjb@laptop.org>
+Date: Thu, 10 Jun 2010 08:46:10 +0000
+Subject: [PATCH] jartool.c (add_file_to_jar): Fix write return value check.
+
+--- a/jartool.c 2010/03/01 15:38:43 1.60
++++ b/jartool.c 2010/06/10 08:46:10 1.61
+@@ -1258,7 +1258,7 @@
+ 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){