Blame SOURCES/authconfig-6.2.8-faillock-args.patch
|
|
ee2f06 |
From ea48505c536de8d97b4a9fa6f0ccf9e46c5d19a2 Mon Sep 17 00:00:00 2001
|
|
|
ee2f06 |
From: Tomas Mraz <tmraz@fedoraproject.org>
|
|
|
ee2f06 |
Date: Thu, 4 May 2017 14:43:20 +0200
|
|
|
ee2f06 |
Subject: [PATCH 2/2] Fix reading of faillockArgs.
|
|
|
ee2f06 |
|
|
|
ee2f06 |
---
|
|
|
ee2f06 |
authinfo.py | 4 ++--
|
|
|
ee2f06 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
ee2f06 |
|
|
|
ee2f06 |
diff --git a/authinfo.py b/authinfo.py
|
|
|
ee2f06 |
index 3bb610fa52bc6486a3da4ec522d7da436f898c82..ffd71a34bc1691ed0f328e6bd07fb9875c8c8214 100644
|
|
|
ee2f06 |
--- a/authinfo.py
|
|
|
ee2f06 |
+++ b/authinfo.py
|
|
|
ee2f06 |
@@ -2158,8 +2158,8 @@ class AuthInfo:
|
|
|
ee2f06 |
self.setParam("enableNullOk", args.find("nullok") >= 0, ref)
|
|
|
ee2f06 |
if module.startswith("pam_faillock"):
|
|
|
ee2f06 |
self.setParam("enableFaillock", True, ref)
|
|
|
ee2f06 |
- if args:
|
|
|
ee2f06 |
- args.replace('authfail', '').strip()
|
|
|
ee2f06 |
+ if args and 'authfail' in args:
|
|
|
ee2f06 |
+ args = args.replace('authfail', '').strip()
|
|
|
ee2f06 |
self.setParam("faillockArgs", args, ref)
|
|
|
ee2f06 |
continue
|
|
|
ee2f06 |
if stack == "account":
|
|
|
ee2f06 |
--
|
|
|
ee2f06 |
2.9.3
|
|
|
ee2f06 |
|