From c51708a379ccf656351000e09eb942a8ea0113c1 Mon Sep 17 00:00:00 2001 From: mengyuan Date: Mon, 22 Aug 2022 16:15:06 +0800 Subject: [PATCH] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. libpwquality (1.4.2-1kylin16) v101; urgency=medium * BUG #65771: 用户名长度低于4时,用户名检测不生效 Gbp-Pq: Name KYLIN-user-check-minlen.patch --- src/pwqprivate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pwqprivate.h b/src/pwqprivate.h index 66a2c92..13f878e 100644 --- a/src/pwqprivate.h +++ b/src/pwqprivate.h @@ -65,7 +65,7 @@ struct setting_mapping { #define PWQ_BASE_MIN_LENGTH 1 /* used when lower than this value of min len is set */ #define PWQ_NUM_CLASSES 4 #define PWQ_NUM_GENERATION_TRIES 3 /* how many times to try to generate the random password if it fails the check */ -#define PWQ_MIN_WORD_LENGTH 4 +#define PWQ_MIN_WORD_LENGTH 1 #define PWQ_MAX_PASSWD_BUF_LEN 16300 #ifndef PWQUALITY_DEFAULT_CFGFILE