diff --git a/1000-modify-translate-file.patch b/1000-modify-translate-file.patch new file mode 100644 index 0000000000000000000000000000000000000000..51b4bf08552dcc9e0b3651ab69dfe47694c96996 --- /dev/null +++ b/1000-modify-translate-file.patch @@ -0,0 +1,27 @@ +From 5cdab47071200ae45c9b44ff4a894ab9a0566f81 Mon Sep 17 00:00:00 2001 +From: songmingliang +Date: Fri, 17 Jun 2022 19:03:58 +0800 +Subject: [PATCH] modify translate file + +--- + po/zh_CN.po | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/po/zh_CN.po b/po/zh_CN.po +index 33c257d..244d967 100644 +--- a/po/zh_CN.po ++++ b/po/zh_CN.po +@@ -534,9 +534,7 @@ msgid "Your account has expired; please contact your system administrator" + msgstr "您的帐户已失效;请与系统管理员取得联系" + + #: modules/pam_unix/pam_unix_acct.c:261 +-#, fuzzy +-msgid "" +-"You are required to change your password immediately (administrator enforced)" ++msgid "You are required to change your password immediately (administrator enforced)" + msgstr "您需要立即更改密码(root 强制)" + + #: modules/pam_unix/pam_unix_acct.c:267 +-- +2.27.0 + diff --git a/pam.spec b/pam.spec index 56d11043898caff312755dcea5a15ceaeee8552a..3a597d7b588746442094c2d8273cf11d662149db 100644 --- a/pam.spec +++ b/pam.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 %define pam_redhat_version 0.99.11 Summary: An extensible library which provides authentication for applications Name: pam Version: 1.3.1 -Release: 16%{?dist} +Release: 16%{anolis_release}%{?dist} # The library is BSD licensed with option to relicense as GPLv2+ # - this option is redundant as the BSD license allows that anyway. # pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+. @@ -70,6 +71,8 @@ Patch50: pam-1.3.1-pam-userdb-prevent-garbage-characters-from-db.patch # https://github.com/linux-pam/linux-pam/commit/3234488f2c52a021eec87df1990d256314c21bff Patch51: pam-1.3.1-pam-limits-unlimited-value.patch +Patch1000: 1000-modify-translate-file.patch + %define _pamlibdir %{_libdir} %define _moduledir %{_libdir}/security %define _secconfdir %{_sysconfdir}/security @@ -168,6 +171,7 @@ cp %{SOURCE18} . %patch49 -p1 -b .namespace-gdm-doc %patch50 -p1 -b .pam-userdb-prevent-garbage-characters-from-db %patch51 -p1 -b .pam-limits-unlimited-value +%patch1000 -p1 autoreconf -i @@ -414,6 +418,9 @@ done %doc doc/specs/rfc86.0.txt %changelog +* Fri Jun 17 2022 songmingliang - 1.3.1-16.0.1 +- fix: modify translation file(https://bugzilla.openanolis.cn/show_bug.cgi?id=1354) + * Fri Jan 28 2022 Iker Pedrosa - 1.3.1-16 - pam_limits: "Unlimited" is not a valid value for RLIMIT_NOFILE. Resolves: #2047655