Blame SOURCES/0023-Backport-typo-fixes-in-password-expiration-warnings.patch

09a3f6
From ddd068c82cb039ddb4531d4817f75252eef51332 Mon Sep 17 00:00:00 2001
09a3f6
From: Jakub Hrozek <jhrozek@redhat.com>
09a3f6
Date: Wed, 14 Aug 2019 09:41:24 +0200
09a3f6
Subject: [PATCH 23/23] Backport typo fixes in password expiration warnings
09a3f6
09a3f6
---
09a3f6
 nslcd/myldap.c | 16 ++++++++--------
09a3f6
 1 file changed, 8 insertions(+), 8 deletions(-)
09a3f6
09a3f6
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
09a3f6
index f83137a..4b53af2 100644
09a3f6
--- a/nslcd/myldap.c
09a3f6
+++ b/nslcd/myldap.c
09a3f6
@@ -430,36 +430,36 @@ static void print_ppolicy_expiry(MYLDAP_SESSION *session, unsigned int sec)
09a3f6
   }
09a3f6
   if (days > 1)
09a3f6
     mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-               "Password will expires in %u days", days);
09a3f6
+               "Password will expire in %u days", days);
09a3f6
   else if (days > 0)
09a3f6
     mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-               "Password will expires in %u hours", hours + 24);
09a3f6
+               "Password will expire in %u hours", hours + 24);
09a3f6
   else if (hours > 1)
09a3f6
   {
09a3f6
     if (minutes > 1)
09a3f6
       mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-                 "Password will expires in %u hours and %u minutes",
09a3f6
+                 "Password will expire in %u hours and %u minutes",
09a3f6
                  hours, minutes);
09a3f6
     else
09a3f6
       mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-                 "Password will expires in %u hours", hours);
09a3f6
+                 "Password will expire in %u hours", hours);
09a3f6
   }
09a3f6
   else if (hours > 0)
09a3f6
     mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-               "Password will expires in %u minutes", minutes + 60);
09a3f6
+               "Password will expire in %u minutes", minutes + 60);
09a3f6
   else if (minutes > 1)
09a3f6
   {
09a3f6
     if (sec > 1)
09a3f6
       mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-                 "Password will expires in %u minutes and %u seconds",
09a3f6
+                 "Password will expire in %u minutes and %u seconds",
09a3f6
                  minutes, sec);
09a3f6
     else
09a3f6
       mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-                 "Password will expires in %u minutes", minutes);
09a3f6
+                 "Password will expire in %u minutes", minutes);
09a3f6
   }
09a3f6
   else
09a3f6
     mysnprintf(session->policy_message, sizeof(session->policy_message),
09a3f6
-               "Password will expires in %u seconds", sec);
09a3f6
+               "Password will expire in %u seconds", sec);
09a3f6
 }
09a3f6
 
09a3f6
 static void handle_ppolicy_controls(MYLDAP_SESSION *session, LDAP *ld, LDAPControl **ctrls)
09a3f6
-- 
09a3f6
2.20.1
09a3f6