Debian Patches

Status for util-linux/2.42-4

Patch Description Author Forwarded Bugs Origin Last update
debian/man-getopt-examples.patch util-linux: getopt(1) should point to where examples are on a Debian system

Debian BTS #913049
Matthew Vernon <matthew@debian.org> no 2018-11-06
debian/verbose-tests.patch verbose-tests
Enable verbose tests and print content of failing tests output file.
Andreas Henriksson <andreas@fatal.se> no 2014-07-30
debian/hardlink-tests-known-failed.patch hardlink tests: set known failed
sha256 cannot be initialized on some archs / buildds.
Chris Hofstaedtler <zeha@debian.org> no 2022-04-12
debian/lsfd-usrbin.patch Install lsfd into /usr/bin Chris Hofstaedtler <zeha@debian.org> no 2022-04-14
debian/sensible-pager.patch Use sensible-pager Chris Hofstaedtler <zeha@debian.org> no 2022-07-14
debian/login-support-LOG_OK_LOGINS.patch login: support LOG_OK_LOGINS Chris Hofstaedtler <zeha@debian.org> no 2024-08-05
debian/login-do-not-print-motd-done-by-PAM.patch login: do not print motd, done by PAM Chris Hofstaedtler <zeha@debian.org> no 2024-08-05
debian/login-turn-off-btmp-utmp-lastlog-writing.patch login: turn off btmp, utmp, lastlog writing
Should be done by PAM instead. login from src:shadow had turned it off, especially with --enable-logind.
Chris Hofstaedtler <zeha@debian.org> no 2024-08-05
debian/salsa-ci-skip-tests.patch Skip fadvise/drop test in Salsa CI Chris Hofstaedtler <zeha@debian.org> no 2025-02-16
upstream/script-fix-command-and-command_norm-memory-leaks.patch script: fix command and command_norm memory leaks
Always own ctl.command by using xstrdup() for the -c optarg path
(the -- path already allocates via ul_strv_join), and free both
ctl.command and ctl.command_norm at exit.
Karel Zak <kzak@redhat.com> no 2026-04-07
upstream/script-fix-backward-compatibility-for-options-after-non-o.patch script: fix backward compatibility for options after non-option args
The commit 7268e79b added "+" to the getopt_long() options string to
support the "--" separator for specifying commands. The "+" prefix
makes getopt stop processing at the first non-option argument, which
breaks the traditional "script file -c command" usage.

Fix this by pre-scanning argv for "--" before getopt, separating the
command arguments, and removing the "+" prefix to restore GNU getopt
argument permutation.
Karel Zak <kzak@redhat.com> no 2026-04-07
upstream/su-common-revert-su-pass-arguments-after-user-to-shell.patch su-common: revert "su: pass arguments after <user> to shell"
This reverts commit ac0147fd14b348097c82c1c89a5417b582e26bad.

Commit ac0147f added '+' to the getopt(3) option string which
allowed the passing of all arguments after a non-option arg
to be passed to the invoked shell, in this case after <user>.
However, this introduced a regression in runuser(1) and su(1)
where options for both utilities are scattered before and after
the username. E.g.: "su <user> -c 'echo foo' -s /bin/bash" will
pass both -c and -s argument sets to the invoked shell instead
of simply passing -c 'echo foo'.

Note that this behavior is more common in BSD/macOS-style
implementations of su(1), in a future commit this behavior will
be added more sensibly and carefully.
Christian Goeschel Ndjomouo <cgoesc2@wgu.edu> no 2026-04-07

All known versions for source package 'util-linux'

Links