Blame SOURCES/fastjar-0.97-len1.patch

56d343
2009-12-21  Chris Ball  <cjb@laptop.org>
56d343
56d343
	* jartool.c (add_file_to_jar): Test write return value against -1
56d343
	instead of 1.
56d343
56d343
--- fastjar-0.97/jartool.c.jj	2008-10-15 12:35:37.000000000 -0400
56d343
+++ fastjar-0.97/jartool.c	2009-12-22 06:48:09.309530000 -0500
56d343
@@ -1257,7 +1257,7 @@ int add_file_to_jar(int jfd, int ffd, co
56d343
       exit_on_error("write");
56d343
 
56d343
   /* write the file name to the zip file */
56d343
-  if (1 == write(jfd, fname, file_name_length))
56d343
+  if (-1 == write(jfd, fname, file_name_length))
56d343
     exit_on_error("write");
56d343
 
56d343
   if(verbose){