diff --git a/backport-Remove-unused-variable-in-fascist-c.patch b/backport-Remove-unused-variable-in-fascist-c.patch new file mode 100644 index 0000000000000000000000000000000000000000..282566b48517f760d21ce1df03f83381bafba11a --- /dev/null +++ b/backport-Remove-unused-variable-in-fascist-c.patch @@ -0,0 +1,29 @@ +From b83f2c2dfe4ae319aeb5a33df97dc87aede524f5 Mon Sep 17 00:00:00 2001 +From: Ed Beroset +Date: Sun, 30 Jun 2024 11:02:01 -0400 +Subject: [PATCH] Remove unused variable in fascist.c + +The maxrepeat variable in FascistLookUser is not used and so it was +removed. This helps address issue #8. + +Signed-off-by: Ed Beroset +--- + lib/fascist.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/fascist.c b/lib/fascist.c +index 822b34d..1f9d2cf 100644 +--- a/lib/fascist.c ++++ b/lib/fascist.c +@@ -707,7 +707,7 @@ char * + FascistLookUser(PWDICT *pwp, char *instring, + const char *user, const char *gecos) + { +- int i,maxrepeat; ++ int i; + char *ptr; + char *jptr; + char junk[STRINGSIZE]; +-- +2.43.0 + diff --git a/cracklib.spec b/cracklib.spec index 5fc4882c76b3f2048df08199814a169dc7cc77f0..4322fc946fc88645d679003400aee8e671333b09 100644 --- a/cracklib.spec +++ b/cracklib.spec @@ -3,7 +3,7 @@ Name: cracklib Version: 2.9.11 -Release: 1 +Release: 2 Summary: A password-checking library License: LGPLv2+ @@ -13,6 +13,7 @@ Source1: https://github.com/cracklib/cracklib/releases/download/v%{version}/crac Patch0: fix-problem-of-error-message-about-simplistic-passwo.patch Patch1: fix-error-length-about-simplistic-password.patch +Patch2: backport-Remove-unused-variable-in-fascist-c.patch BuildRequires: gcc, words, gettext, gettext-autopoint, zlib-devel BuildRequires: python3-devel @@ -142,6 +143,9 @@ make test %{_libdir}/python3*/site-packages/__pycache__/* %changelog +* Wed Aug 27 2025 yixiangzhike - 2.9.11-2 +- backport upstream patch to remove unused variable + * Fri Jul 14 2023 yixiangzhike - 2.9.11-1 - update to 2.9.11