Package: util-linux
Version: 2.36.1-8
Severity: minor
File: /bin/more
Tags: upstream
X-Debbugs-Cc: vincent.vsme...@gmail.com

Giving the option --print-over (or -c) to more, erases the line on the
screen before writing the new content. This works most of the time, but
missing at one location. Give the command:

        more --print-over /etc/*

The first and third lines show 14 colons. The second line shows the
filename. The line with the filename is however not erased before
writing the filename. This results in that the old text is still visible
after the filename.

The fix is to add an erase-line before writing the filename to screen.
Add the conditional erase_line before line 1910 in file more.c
https://salsa.debian.org/debian/util-linux/-/blob/upstream/text-utils/more.c#L1910


-- System Information:
Debian Release: 11.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Locale: LANG=nl_NL.utf8, LC_CTYPE=nl_NL.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages util-linux depends on:
ii  libaudit1      1:3.0-2
ii  libblkid1      2.36.1-8
ii  libc6          2.31-13
ii  libcap-ng0     0.7.9-2.2+b1
ii  libcrypt1      1:4.4.18-4
ii  libmount1      2.36.1-8
ii  libpam0g       1.4.0-9
ii  libselinux1    3.1-3
ii  libsmartcols1  2.36.1-8
ii  libsystemd0    247.3-6
ii  libtinfo6      6.2+20201114-2
ii  libudev1       247.3-6
ii  libuuid1       2.36.1-8
ii  login          1:4.8.1-1
ii  zlib1g         1:1.2.11.dfsg-2

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  dosfstools          4.2-1
pn  kbd                 <none>
ii  util-linux-locales  2.36.1-8

-- no debconf information

Reply via email to