加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-pam-1.1.8-faillock-failmessages.patch 919 Bytes
一键复制 编辑 原始数据 按行查看 历史
Liquor 提交于 2020-07-24 15:59 . update to 1.4.0
From 7caf16119e3ed87818eb36a09d2fd84c4e027575 Mon Sep 17 00:00:00 2001
From: openEuler Buildteam <buildteam@openeuler.org>
Date: Mon, 27 Jul 2020 09:11:29 +0800
Subject: [PATCH] bugfix pam 1.1.8 faillock failmessages
---
modules/pam_faillock/pam_faillock.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/pam_faillock/pam_faillock.c b/modules/pam_faillock/pam_faillock.c
index f592d0a..5b5cc2c 100644
--- a/modules/pam_faillock/pam_faillock.c
+++ b/modules/pam_faillock/pam_faillock.c
@@ -645,9 +645,7 @@ faillock_message(pam_handle_t *pamh, struct options *opts)
pam_info(pamh, _("The account is locked due to %u failed logins."),
(unsigned int)opts->failures);
if (left > 0) {
- left = (left + 59)/60; /* minutes */
-
- pam_info(pamh, _("(%d minutes left to unlock)"), (int)left);
+ pam_info(pamh, _("(%d seconds left to unlock)"), (int)left);
}
}
}
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化