* fpc is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
17 lines
527 B
Diff
17 lines
527 B
Diff
http://cvs.savannah.gnu.org/viewvc/fastjar/jartool.c?root=fastjar&r1=1.60&r2=1.61&view=patch
|
|
|
|
2010-06-10 Chris Ball <cjb@laptop.org>
|
|
|
|
* 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){
|