Blob Blame History Raw
From 53f701c67021ddce1b554d2f85a96d9f28359bca Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jakub.hrozek@posteo.se>
Date: Fri, 30 Aug 2019 12:52:42 +0200
Subject: [PATCH] Backport of  Update shadow.c to resolve pwdLastSet issue

---
 nslcd/shadow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nslcd/shadow.c b/nslcd/shadow.c
index f7dee7d..46dacc9 100644
--- a/nslcd/shadow.c
+++ b/nslcd/shadow.c
@@ -135,7 +135,7 @@ static long to_date(const char *dn,const char *date,const char *attr)
     strncpy(buffer,date,l);
     buffer[l]='\0';
     errno=0;
-    value=strtol(date,&tmp,10);
+    value=strtol(buffer,&tmp,10);
     if ((*date=='\0')||(*tmp!='\0'))
     {
       log_log(LOG_WARNING,"%s: %s: non-numeric",dn,attr);
-- 
2.21.0