diff --git a/shadow-add-sm3-crypt-support.patch b/shadow-add-sm3-crypt-support.patch index 8b1e98a0d7bd04604a98f3529103d1a633e82d6f..b5ee39e0052c05e66a90156fc5ecd9d019b41cb2 100644 --- a/shadow-add-sm3-crypt-support.patch +++ b/shadow-add-sm3-crypt-support.patch @@ -496,8 +496,8 @@ index 1a1a5d5..a2b6e9e 100644 #endif /* USE_YESCRYPT */ - if (bad_s != 0) { +#if defined(USE_SM3_CRYPT) -+ if (( (0 == strcmp (crypt_method, "SM3")) -+ && (0 == getlong(optarg, &sm3_rounds)))) { ++ if (IS_CRYPT_METHOD("SM3") ++ && (0 == getlong(optarg, &sm3_rounds))) { + bad_s = 1; + } +#endif /* USE_SM3_CRYPT */ diff --git a/shadow.spec b/shadow.spec index 288e761adc1d38be877c3834b85ab90ff21d2605..41b23a55471fcf21d03ef71979cf6bcfccf906a6 100644 --- a/shadow.spec +++ b/shadow.spec @@ -1,6 +1,6 @@ Name: shadow Version: 4.14.3 -Release: 5 +Release: 6 Epoch: 2 License: BSD and GPLv2+ Summary: Tools for managing accounts and shadow password files @@ -198,6 +198,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.{la,a} %{_mandir}/*/* %changelog +* Wed Feb 12 2025 beta - 2:4.14.3-6 +- chpasswd fix coredump with s parameter + * Fri Feb 7 2025 hugel - 2:4.14.3-5 - backport patches from upstream