summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.20.0/busybox-1.20.0-sed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/busybox-1.20.0/busybox-1.20.0-sed.patch')
-rw-r--r--package/busybox/busybox-1.20.0/busybox-1.20.0-sed.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.20.0/busybox-1.20.0-sed.patch b/package/busybox/busybox-1.20.0/busybox-1.20.0-sed.patch
new file mode 100644
index 000000000..70dc63f46
--- /dev/null
+++ b/package/busybox/busybox-1.20.0/busybox-1.20.0-sed.patch
@@ -0,0 +1,29 @@
+--- busybox-1.20.0/editors/sed.c
++++ busybox-1.20.0-sed/editors/sed.c
+@@ -743,7 +743,7 @@ static int do_subst_command(sed_cmd_t *s
+ */
+ if (!G.regmatch[0].rm_so && !G.regmatch[0].rm_eo && match_count) {
+ pipe_putc(*line++);
+- continue;
++ goto next;
+ }
+
+ match_count++;
+@@ -755,7 +755,7 @@ static int do_subst_command(sed_cmd_t *s
+ ) {
+ for (i = 0; i < G.regmatch[0].rm_eo; i++)
+ pipe_putc(*line++);
+- continue;
++ goto next;
+ }
+
+ /* print everything before the match */
+@@ -773,7 +773,7 @@ static int do_subst_command(sed_cmd_t *s
+ /* if we're not doing this globally, get out now */
+ if (sed_cmd->which_match != 0)
+ break;
+-
++ next:
+ if (*line == '\0')
+ break;
+