Mercurial > hg > aboriginal
comparison sources/patches/busybox-fixpatch.patch @ 1428:f5ba63db222d
Fix the busybox patch I sent upstream to work with hunks at the start of file.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 20 Aug 2011 12:26:25 -0500 |
parents | 14739f3ae2a5 |
children |
comparison
equal
deleted
inserted
replaced
1427:6c85cda8cfce | 1428:f5ba63db222d |
---|---|
28 @@ -229,7 +227,7 @@ static int apply_one_hunk(void) | 28 @@ -229,7 +227,7 @@ static int apply_one_hunk(void) |
29 else matcheof = 0; | 29 else matcheof = 0; |
30 if (PATCH_DEBUG) fdprintf(2, "HUNK:%s\n", plist->data); | 30 if (PATCH_DEBUG) fdprintf(2, "HUNK:%s\n", plist->data); |
31 } | 31 } |
32 - matcheof = matcheof < TT.context; | 32 - matcheof = matcheof < TT.context; |
33 + matcheof = !TT.context || matcheof < TT.context; | 33 + matcheof = !matcheof || matcheof < TT.context; |
34 | 34 |
35 if (PATCH_DEBUG) fdprintf(2,"MATCHEOF=%c\n", matcheof ? 'Y' : 'N'); | 35 if (PATCH_DEBUG) fdprintf(2,"MATCHEOF=%c\n", matcheof ? 'Y' : 'N'); |
36 | 36 |