shadow: Update to version 4.20.4

Message ID 20261123122109.3198846-5-adolf.belka@ipfire.org
State Accepted
Commit 0e519c9b17286a4ae54157a289c287084a1a98ce
Headers
Series shadow: Update to version 4.20.4 |

Commit Message

Adolf Belka 23 Nov 2026, 12:21 p.m. UTC
- Update from version 4.20.0 to 4.20.4
- No change in rootfile
- stdint.h patch removed as now included in tarball
- 1 security fix in 4.20.4
- Changelog
4.20.4
Security fixes:
    new[ug]idmap(1)
        Use openat2(2) to avoid following symlinks and bind mounts.
        Drop fd:N.
Regression fixes:
    lib/nscd.h
        Fix build error due to wrong type.
        (regression introduced in 4.20.3)
    chfn(1)
        Restore an error message that was accidentally made unreachable.
        (regression introduced in 4.20.0)
    chpasswd(8)
        Respect chroot/prefix when reading </etc/login.defs>.
        (regression introduced in 4.12)
    groupmod(8)
        Fix wrong database name in syslog(3) message.
        (regression introduced in 4.1.3)
4.20.3
Regression fixes:
    Build error when using '--with-nscd=no' (bug introduced in v4.19.0).
4.20.2
Regression fixes:
    lib/: Add missing include.
Other changes:
    Remove unused build flag

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 lfs/shadow                                    |  5 ++---
 ...ow-4.20.0_Add_stdint.h_for_uintmax_t.patch | 22 -------------------
 2 files changed, 2 insertions(+), 25 deletions(-)
 delete mode 100644 src/patches/shadow-4.20.0_Add_stdint.h_for_uintmax_t.patch
  

Patch

diff --git a/lfs/shadow b/lfs/shadow
index f1a021910..72f9a8085 100644
--- a/lfs/shadow
+++ b/lfs/shadow
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 4.20.0
+VER        = 4.20.4
 
 THISAPP    = shadow-$(VER)
 DL_FILE    = $(THISAPP).tar.xz
@@ -40,7 +40,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = 8224edc692d6016da26e54aa43405029b4bebcbc7a73a9a56f1ee3bdcf7c7a3af6b90d8fc134182fc26c6b7b8f2afc4f54c2f6e6748760b8928284aa77374a15
+$(DL_FILE)_BLAKE2 = 6093485a552d2584a07b433cbeb6978994a3104c1d5430a039df44bb929a553f370a75ae3cfa626c23f8984c3b967ea3cf7247a0aa04b1fe4b967664cf14cf8a
 
 install : $(TARGET)
 
@@ -70,7 +70,6 @@  $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
-	cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/shadow-4.20.0_Add_stdint.h_for_uintmax_t.patch
 	cd $(DIR_APP) && find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
 	cd $(DIR_APP) && find man -name Makefile.in -exec sed -i 's/passwd\.5 / /'   {} \;
 	$(UPDATE_AUTOMAKE)
diff --git a/src/patches/shadow-4.20.0_Add_stdint.h_for_uintmax_t.patch b/src/patches/shadow-4.20.0_Add_stdint.h_for_uintmax_t.patch
deleted file mode 100644
index e07e7db74..000000000
--- a/src/patches/shadow-4.20.0_Add_stdint.h_for_uintmax_t.patch
+++ /dev/null
@@ -1,22 +0,0 @@ 
-diff -Naur shadow-4.20.0.orig/lib/find_new_sub_gids.c shadow-4.20.0/lib/find_new_sub_gids.c
---- shadow-4.20.0.orig/lib/find_new_sub_gids.c	2026-08-07 18:55:36.246967805 +0200
-+++ shadow-4.20.0/lib/find_new_sub_gids.c	2026-08-07 22:41:35.771731696 +0200
-@@ -8,6 +8,7 @@
- 
- #ifdef ENABLE_SUBIDS
- 
-+#include <stdint.h>
- #include <stdio.h>
- #include <errno.h>
- 
-diff -Naur shadow-4.20.0.orig/lib/find_new_sub_uids.c shadow-4.20.0/lib/find_new_sub_uids.c
---- shadow-4.20.0.orig/lib/find_new_sub_uids.c	2026-08-07 18:56:37.619956630 +0200
-+++ shadow-4.20.0/lib/find_new_sub_uids.c	2026-08-07 22:41:52.640184987 +0200
-@@ -8,6 +8,7 @@
- 
- #ifdef ENABLE_SUBIDS
- 
-+#include <stdint.h>
- #include <stdio.h>
- #include <errno.h>
-