Projects
Mega:24.09
libpwquality
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:libpwquality.spec
Changed
@@ -3,7 +3,7 @@ Name: libpwquality Version: 1.4.5 -Release: 1 +Release: 2 Summary: Library for password quality checking and generating random passwords. License: BSD or GPLv2+ URL: https://github.com/libpwquality/libpwquality/ @@ -12,6 +12,7 @@ Patch0: modify-pwquality_conf.patch Patch1: fix-password-similarity.patch Patch2: fix-doc-about-difok.patch +Patch3: backport-Make-maxclassrepeat-1-behavior-consistent-with-docs.patch BuildRequires: gcc cracklib-devel gettext pam-devel BuildRequires: python3-devel @@ -99,6 +100,12 @@ %{_mandir}/man8/* %changelog +* Tue Jul 2 2024 yixiangzhike <yixiangzhike007@163.com> - 1.4.5-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:backport upstream patch to fix maxclassrepeat=1 + * Wed Dec 28 2022 yixiangzhike <yixiangzhike007@163.com> - 1.4.5-1 - Type:enhancement - ID:NA
View file
_service:tar_scm:backport-Make-maxclassrepeat-1-behavior-consistent-with-docs.patch
Added
@@ -0,0 +1,28 @@ +From 2f6cd189bde18f5e73ed0a24c731681b085fc874 Mon Sep 17 00:00:00 2001 +From: fdub <fdub@users.noreply.github.com> +Date: Wed, 1 Nov 2023 15:29:32 +0100 +Subject: PATCH Make maxclassrepeat=1 behavior consistent with docs + +When setting maxclassrepeat=1, the rule would be inactive and allow passwords containing 2 consecutive characters from the same class. Only when setting maxclassrepeat>=2, the rule would behave as expected. + +This issue was already addressed in pam_cracklib many years ago: https://github.com/linux-pam/linux-pam/pull/9 +--- + src/check.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/check.c b/src/check.c +index d24bebc..79d4c9c 100644 +--- a/src/check.c ++++ b/src/check.c +@@ -238,7 +238,7 @@ simple(pwquality_settings_t *pwq, const char *new, void **auxerror) + } else + sameclass++; + } +- if (pwq->max_class_repeat > 1 && sameclass > pwq->max_class_repeat) { ++ if (pwq->max_class_repeat > 0 && sameclass > pwq->max_class_repeat) { + if (auxerror) + *auxerror = (void *)(long)pwq->max_class_repeat; + return PWQ_ERROR_MAX_CLASS_REPEAT; +-- +2.33.0 +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/libpwquality.git</param> - <param name="revision">master</param> + <param name="revision">openEuler-24.09</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2