Blame SOURCES/0025-Backport-of-Update-shadow.c-to-resolve-pwdLastSet-is.patch

09a3f6
From 53f701c67021ddce1b554d2f85a96d9f28359bca Mon Sep 17 00:00:00 2001
09a3f6
From: Jakub Hrozek <jakub.hrozek@posteo.se>
09a3f6
Date: Fri, 30 Aug 2019 12:52:42 +0200
09a3f6
Subject: [PATCH] Backport of  Update shadow.c to resolve pwdLastSet issue
09a3f6
09a3f6
---
09a3f6
 nslcd/shadow.c | 2 +-
09a3f6
 1 file changed, 1 insertion(+), 1 deletion(-)
09a3f6
09a3f6
diff --git a/nslcd/shadow.c b/nslcd/shadow.c
09a3f6
index f7dee7d..46dacc9 100644
09a3f6
--- a/nslcd/shadow.c
09a3f6
+++ b/nslcd/shadow.c
09a3f6
@@ -135,7 +135,7 @@ static long to_date(const char *dn,const char *date,const char *attr)
09a3f6
     strncpy(buffer,date,l);
09a3f6
     buffer[l]='\0';
09a3f6
     errno=0;
09a3f6
-    value=strtol(date,&tmp,10);
09a3f6
+    value=strtol(buffer,&tmp,10);
09a3f6
     if ((*date=='\0')||(*tmp!='\0'))
09a3f6
     {
09a3f6
       log_log(LOG_WARNING,"%s: %s: non-numeric",dn,attr);
09a3f6
-- 
09a3f6
2.21.0
09a3f6