summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch')
-rw-r--r--meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch23
1 files changed, 0 insertions, 23 deletions
diff --git a/meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch b/meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch
deleted file mode 100644
index e59211bd5d..0000000000
--- a/meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch
+++ /dev/null
@@ -1,23 +0,0 @@
1Derived from:
2http://git.busybox.net/busybox/commit/?id=46031da862a60422f80050a905cea0b67026b021.
3
4In vi mode, the 'p' and 'P' commands caused a segfault when nothing had
5been put in the buffer yet because the delptr was not initialized.
6
7Upstream-Status: Backport
8
9Signed-off-by: Shawn J. Goff <shawn7400@gmail.com>
10Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
11Signed-off-by: Ming Liu <ming.liu@windriver.com>
12
13diff -urpN a/libbb/lineedit.c b/libbb/lineedit.c
14--- a/libbb/lineedit.c
15+++ b/libbb/lineedit.c
16@@ -187,6 +187,7 @@ extern struct lineedit_statics *const li
17 cmdedit_termw = 80; \
18 IF_FEATURE_EDITING_FANCY_PROMPT(num_ok_lines = 1;) \
19 IF_USERNAME_OR_HOMEDIR(home_pwd_buf = (char*)null_str;) \
20+ IF_FEATURE_EDITING_VI(delptr = delbuf;) \
21 } while (0)
22
23 static void deinit_S(void)