blob: 795179fcd2741af7e8ab596b2c23006329071666 (
plain) (
tree)
|
|
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){
|