From 31046537d721eed8d7bdcfa2d257f91fe89eb32a Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Wed, 10 Aug 2022 16:29:37 +0800 Subject: [PATCH] Fix doc about difok Signed-off-by: yixiangzhike --- fix-doc-about-difok.patch | 81 +++++++++++++++++++++++++++++++++++++++ libpwquality.spec | 9 ++++- 2 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 fix-doc-about-difok.patch diff --git a/fix-doc-about-difok.patch b/fix-doc-about-difok.patch new file mode 100644 index 0000000..915e43d --- /dev/null +++ b/fix-doc-about-difok.patch @@ -0,0 +1,81 @@ +From 950ef20f494efad610dcd150db8c8b004c2b1c0d Mon Sep 17 00:00:00 2001 +From: yixiangzhike +Date: Wed, 10 Aug 2022 15:34:03 +0800 +Subject: [PATCH] fix doc about difok + +--- + doc/man/pam_pwquality.8 | 2 +- + doc/man/pam_pwquality.8.pod | 2 +- + doc/man/pwquality.conf.5 | 2 +- + doc/man/pwquality.conf.5.pod | 2 +- + src/pwquality.conf | 2 +- + 5 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/doc/man/pam_pwquality.8 b/doc/man/pam_pwquality.8 +index 030223d..670d562 100644 +--- a/doc/man/pam_pwquality.8 ++++ b/doc/man/pam_pwquality.8 +@@ -156,7 +156,7 @@ Prompt user at most \fIN\fR times before returning with error. The default is + \&\fI1\fR. + .IP "\fBdifok=\fR\fIN\fR" 4 + .IX Item "difok=N" +-This argument will change the default of \fI1\fR for the number of changes in ++This argument will change the default of \fI5\fR for the number of changes in + the new password from the old password. + .Sp + The special value of \fI0\fR disables all checks of similarity of the new password +diff --git a/doc/man/pam_pwquality.8.pod b/doc/man/pam_pwquality.8.pod +index 7a74b48..4734a24 100644 +--- a/doc/man/pam_pwquality.8.pod ++++ b/doc/man/pam_pwquality.8.pod +@@ -102,7 +102,7 @@ I<1>. + + =item BI + +-This argument will change the default of I<1> for the number of changes in ++This argument will change the default of I<5> for the number of changes in + the new password from the old password. + + The special value of I<0> disables all checks of similarity of the new password +diff --git a/doc/man/pwquality.conf.5 b/doc/man/pwquality.conf.5 +index 1093aeb..7ed1992 100644 +--- a/doc/man/pwquality.conf.5 ++++ b/doc/man/pwquality.conf.5 +@@ -103,7 +103,7 @@ The possible options in the file are: + .IP "\fBdifok\fR" 4 + .IX Item "difok" + Number of characters in the new password that must not be present in the +-old password. (default 1) ++old password. (default 5) + .Sp + The special value of 0 disables all checks of similarity of the new password + with the old password except the new password being exactly the same as +diff --git a/doc/man/pwquality.conf.5.pod b/doc/man/pwquality.conf.5.pod +index ada22d0..c7c44cb 100644 +--- a/doc/man/pwquality.conf.5.pod ++++ b/doc/man/pwquality.conf.5.pod +@@ -34,7 +34,7 @@ The possible options in the file are: + =item B + + Number of characters in the new password that must not be present in the +-old password. (default 1) ++old password. (default 5) + + The special value of 0 disables all checks of similarity of the new password + with the old password except the new password being exactly the same as +diff --git a/src/pwquality.conf b/src/pwquality.conf +index ace3d5f..cb3e99c 100644 +--- a/src/pwquality.conf ++++ b/src/pwquality.conf +@@ -3,7 +3,7 @@ + # + # Number of characters in the new password that must not be present in the + # old password. +-# difok = 1 ++# difok = 5 + # + # Minimum acceptable size for the new password (plus one if + # credits are not disabled which is the default). (See pam_cracklib manual.) +-- +2.27.0 + diff --git a/libpwquality.spec b/libpwquality.spec index 38cb8c1..739c4d4 100644 --- a/libpwquality.spec +++ b/libpwquality.spec @@ -3,7 +3,7 @@ Name: libpwquality Version: 1.4.2 -Release: 1 +Release: 2 Summary: Library for password quality checking and generating random passwords. License: BSD or GPLv2+ URL: https://github.com/libpwquality/libpwquality/ @@ -11,6 +11,7 @@ Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwqua Patch0: modify-pwquality_conf.patch Patch1: fix-password-similarity.patch +Patch2: fix-doc-about-difok.patch BuildRequires: gcc cracklib-devel gettext pam-devel BuildRequires: python2-devel python3-devel @@ -123,6 +124,12 @@ mkdir %{buildroot}%{_secconfdir}/pwquality.conf.d %{_mandir}/man8/* %changelog +* Wed Aug 10 2022 yixiangzhike - 1.4.2-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix doc about difok + * Tue Aug 25 2020 Liquor - 1.4.2-1 - Type:enhancement - ID:NA -- Gitee