]> git.ipfire.org Git - ipfire-2.x.git/commit
readline: Update patches to patch 1 to patch 10
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 31 Jan 2024 14:18:47 +0000 (15:18 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Jan 2024 17:06:19 +0000 (17:06 +0000)
commite9ba050b69fb162c9520063394bc52513dfa1a37
treee0b36cd893bf42bf1b36c3e662d13a8506f7d12d
parentc749cee1e55a0855d88838abda59334bd9065a16
readline: Update patches to patch 1 to patch 10

- Update from version 8.2 with patch 1 to 8.2 with patches 1 to 10
- Update of rootfile not required
- Changelog
    Patch 10
Fix the case where text to be completed from the line buffer (quoted) is
compared to the common prefix of the possible matches (unquoted) and the
quoting makes the former appear to be longer than the latter. Readline
assumes the match doesn't add any characters to the word and doesn't display
multiple matches.
    Patch 9
Fix issue where the directory name portion of the word to be completed (the
part that is passed to opendir()) requires both tilde expansion and dequoting.
Readline only performed tilde expansion in this case, so filename completion
would fail.
    Patch 8
Add missing prototypes for several function declarations.
    Patch 7
If readline is called with no prompt, it should display a newline if return
is typed on an empty line. It should still suppress the final newline if
return is typed on the last (empty) line of a multi-line command.
    Patch 6
This is a variant of the same issue as the one fixed by patch 5. In this
case, the signal arrives and is pending before readline calls rl_getc().
When this happens, the pending signal will be handled by the loop, but may
alter or destroy some state that the callback uses. Readline needs to treat
this case the same way it would if a signal interrupts pselect/select, so
compound operations like searches and reading numeric arguments get cleaned
up properly.
    Patch 5
If an application is using readline in callback mode, and a signal arrives
after readline checks for it in rl_callback_read_char() but before it
restores the application's signal handlers, it won't get processed until the
next time the application calls rl_callback_read_char(). Readline needs to
check for and resend any pending signals after restoring the application's
signal handlers.
    Patch 4
There are systems that supply one of select or pselect, but not both.
    Patch 3
The custom color prefix that readline uses to color possible completions
must have a leading `.'.
    Patch 2
It's possible for readline to try to zero out a line that's not null-
terminated, leading to a memory fault.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/readline
src/patches/readline/readline82-002 [new file with mode: 0644]
src/patches/readline/readline82-003 [new file with mode: 0644]
src/patches/readline/readline82-004 [new file with mode: 0644]
src/patches/readline/readline82-005 [new file with mode: 0644]
src/patches/readline/readline82-006 [new file with mode: 0644]
src/patches/readline/readline82-007 [new file with mode: 0644]
src/patches/readline/readline82-008 [new file with mode: 0644]
src/patches/readline/readline82-009 [new file with mode: 0644]
src/patches/readline/readline82-010 [new file with mode: 0644]