]> git.pld-linux.org Git - packages/busybox.git/blob - busybox-lineedit.patch
- BR uClibc-static >= 3:0.9.30.1 (it has combreloc|relro filtering built in)
[packages/busybox.git] / busybox-lineedit.patch
1 diff -urpN busybox-1.12.1.orig/libbb/lineedit.c busybox-1.12.1/libbb/lineedit.c
2 --- busybox-1.12.1.orig/libbb/lineedit.c        2008-09-28 20:04:20.000000000 +0200
3 +++ busybox-1.12.1/libbb/lineedit.c     2008-10-31 19:01:43.000000000 +0100
4 @@ -1415,7 +1415,8 @@ int FAST_FUNC read_line_input(const char
5         if ((state->flags & SAVE_HISTORY) && state->hist_file)
6                 load_history(state->hist_file);
7  #endif
8 -       state->cur_history = state->cnt_history;
9 +       if (state->flags)
10 +               state->cur_history = state->cnt_history;
11  
12         /* prepare before init handlers */
13         cmdedit_y = 0;  /* quasireal y, not true if line > xt*yt */
This page took 0.076903 seconds and 3 git commands to generate.