Debian Patches

Status for lnav/0.13.2-2

Patch Description Author Forwarded Bugs Origin Last update
terminfo-gate-stack-ops-on-exec-and-drop-the-c-escap.patch [terminfo] gate stack ops on exec and drop the %'c' escape branch
tiparm_s consulted `exec` only when producing output, never when
mutating the stack, so `%p`, `%{n}`, `%'c'` and the binary operators
ran in both arms of a `%?...%t...%e...%;`. Entries that place `%d`
after the `%;` then print whatever the untaken arm left behind:

setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%'R'%+%;%dm

For setaf(0) the live arm pushes 30, the dead arm pushes 0 and 'R'
and adds them to 82, and `%d` pops 82. Adding the `%'c'` push made
this reachable for the whole `*-16color` family: setaf(0..7) emitted
SGR 82-89, which terminals ignore, and setab(0..7) emitted SGR 92-99,
which are bright foreground colors, so a background request silently
recolored the foreground instead. Gating every stack operation on
`exec` brings xterm-16color and xterm-256color to zero mismatches
against ncurses tparm.

The backslash handling in `%'c'` is also removed. terminfo_load reads
compiled entries, and tic resolves escapes at compile time, so a source
`%'\010'` arrives as a raw 0x08 that the plain-character path already
handles. The only byte the escape branch could actually encounter is
a literal backslash from a source `%'\\'`, and it mis-parsed that one,
consuming the closing quote as the escaped character and pushing 0x27
instead of 0x5C.
Timothy Stack <tim@stack-email.org> no debian https://github.com/tstack/lnav/commit/cf21cc9637c95690b18460bf4005bdb81aa8dae3 2026-08-23
default-to-var-log-syslog-on-Debian.patch Prefer /var/log/syslog over /var/log/messages On Debian the default /etc/rsyslog.conf shipped with rsyslog
prefers logs *.* to /var/log/syslog. Thus prefer this logfile
in list of default logfiles.
Salvatore Bonaccorso <carnil@debian.org> not-needed debian vendor 2015-11-16
terminfo-support-the-c-character-constant.patch [terminfo] support the %'c' character constant
The terminfo parser handled %{nn} integer constants but had no case for
%'c', so the operator fell through to the default branch and its bytes
were copied into the output as literal text.

xterm-256color's setaf uses %'\010' and %'\020' to test the colour index
against 8 and 16, so the conditional never evaluated and tiparm_s()
returned a malformed CSI sequence containing a literal BS:

setaf(112) -> \E[\010'3112m instead of \E[38;5;112m

0x08 and ' are not valid in a CSI parameter string, so terminals abort
the sequence and print the rest as text, which corrupts the display.

This affects every terminfo entry whose setaf/setab uses %'c', including
xterm-256color, xterm-16color, screen-256color, tmux-256color, alacritty,
xterm-kitty, xterm-ghostty and vte-256color.

Handle plain characters, octal escapes such as %'\010', and the common
named escapes.
Adam Spiers <lnav@adamspiers.org> no debian https://github.com/tstack/lnav/commit/8c19b729464e5e2078881db885c57c8309c1dcb3 2026-08-23

All known versions for source package 'lnav'

Links