lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r2065 - nss-pam-ldapd-0.8/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r2065 - nss-pam-ldapd-0.8/nslcd



Author: arthur
Date: Sun Jan 26 18:05:09 2014
New Revision: 2065
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=2065&view=revision

Log:
fix pwdLastSet calcuation (2181cca from 0.9, thanks Joshua Shire)

Modified:
   nss-pam-ldapd-0.8/nslcd/shadow.c

Modified: nss-pam-ldapd-0.8/nslcd/shadow.c
==============================================================================
--- nss-pam-ldapd-0.8/nslcd/shadow.c    Sun Dec  8 22:35:47 2013        (r2064)
+++ nss-pam-ldapd-0.8/nslcd/shadow.c    Sun Jan 26 18:05:09 2014        (r2065)
@@ -135,7 +135,7 @@
     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);
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/