[packages/util-linux] remove su-paths patch
atler
atler at pld-linux.org
Tue May 26 00:22:36 CEST 2026
commit 43a0596b1b76599eb183bf4b0509bdcda0f948b6
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Apr 13 19:27:36 2026 +0200
remove su-paths patch
the patch did nothing since 2.22 (2012) as upstream dropped use of
those constants. judging by the fact nobody noticed it for over 13 years
it's safe to assume it's no longer needed
su-paths.patch | 19 -------------------
util-linux.spec | 2 --
2 files changed, 21 deletions(-)
---
diff --git a/util-linux.spec b/util-linux.spec
index b84c603..b7b8c8c 100644
--- a/util-linux.spec
+++ b/util-linux.spec
@@ -52,7 +52,6 @@ Source13: blockdev.sh
Patch0: %{name}-fdformat-ide.patch
Patch1: %{name}-fhs.patch
Patch2: %{name}-login-lastlog.patch
-Patch4: su-paths.patch
Patch6: %{name}-diet.patch
Patch7: %{name}-man-asciidoctor.patch
URL: https://github.com/karelzak/util-linux
@@ -898,7 +897,6 @@ Bashowe dopełnianie parametrów dla poleceń z pakietu util-linux.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
-%patch -P4 -p1
%patch -P7 -p1
%{?with_initrd:%patch -P6 -p1}
diff --git a/su-paths.patch b/su-paths.patch
deleted file mode 100644
index 8f4eb49..0000000
--- a/su-paths.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -urNp -x '*.orig' util-linux-2.36.2.org/login-utils/su-common.c util-linux-2.36.2/login-utils/su-common.c
---- util-linux-2.36.2.org/login-utils/su-common.c 2021-02-12 12:32:01.749988723 +0100
-+++ util-linux-2.36.2/login-utils/su-common.c 2021-02-28 14:22:27.508126765 +0100
-@@ -100,6 +100,15 @@ UL_DEBUG_DEFINE_MASKNAMES(su) = UL_DEBUG
-
- #define is_pam_failure(_rc) ((_rc) != PAM_SUCCESS)
-
-+/* The default paths which get set are both bogus and oddly influenced
-+ by <paths.h> and -D on the commands line. Just to be clear, we'll set
-+ these explicitly. -ewt */
-+#undef DEFAULT_LOGIN_PATH
-+#undef DEFAULT_ROOT_LOGIN_PATH
-+#define DEFAULT_LOGIN_PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
-+#define DEFAULT_ROOT_LOGIN_PATH \
-+ "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/X11R6/sbin"
-+
- /* The shell to run if none is given in the user's passwd entry. */
- #define DEFAULT_SHELL "/bin/sh"
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/util-linux.git/commitdiff/43a0596b1b76599eb183bf4b0509bdcda0f948b6
More information about the pld-cvs-commit
mailing list