Blame SOURCES/authconfig-6.2.8-faillock-args.patch

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