lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.8.12-123-g7926326

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

nss-pam-ldapd branch master updated. 0.8.12-123-g7926326



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  7926326ac549bc0e6e3fd0dc9e8b9014f0bacde6 (commit)
      from  83c5788daeec43929088f745238f8c9c31b4d6a8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=7926326ac549bc0e6e3fd0dc9e8b9014f0bacde6

commit 7926326ac549bc0e6e3fd0dc9e8b9014f0bacde6
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Mon Mar 11 20:57:43 2013 +0100

    fix the text representation of shadow information for nscd on Solaris

diff --git a/nss/shadow.c b/nss/shadow.c
index 8fe2437..29fc810 100644
--- a/nss/shadow.c
+++ b/nss/shadow.c
@@ -93,24 +93,24 @@ static char *spwd2str(struct spwd *result, char *buffer, 
size_t buflen)
   /* snprintf writes a terminating \0 on Solaris */
   snprintf(buffer, buflen, "%s:%s:", result->sp_namp, result->sp_pwdp);
   if (result->sp_lstchg >= 0)
-    snprintf(buffer, buflen - strlen(buffer) - 1, "%d:", result->sp_lstchg);
+    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_lstchg);
   strlcat(buffer, ":", buflen);
   if (result->sp_min >= 0)
-    snprintf(buffer, buflen - strlen(buffer) - 1, "%d:", result->sp_min);
+    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_min);
   strlcat(buffer, ":", buflen);
   if (result->sp_max >= 0)
-    snprintf(buffer, buflen - strlen(buffer) - 1, "%d:", result->sp_max);
+    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_max);
   strlcat(buffer, ":", buflen);
   if (result->sp_warn >= 0)
-    snprintf(buffer, buflen - strlen(buffer) - 1, "%d:", result->sp_warn);
+    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_warn);
   strlcat(buffer, ":", buflen);
   if (result->sp_inact >= 0)
-    snprintf(buffer, buflen - strlen(buffer) - 1, "%d:", result->sp_inact);
+    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_inact);
   strlcat(buffer, ":", buflen);
   if (result->sp_expire >= 0)
-    snprintf(buffer, buflen - strlen(buffer) - 1, "%d:", result->sp_expire);
+    snprintf(buffer, buflen - strlen(buffer) - 1, "%d", result->sp_expire);
   strlcat(buffer, ":", buflen);
-  if (result->sp_flag >= 0)
+  if (result->sp_flag > 0)
     snprintf(buffer, buflen - strlen(buffer) - 1, "%x", result->sp_flag);
   if (strlen(buffer) >= buflen - 1)
     return NULL;

-----------------------------------------------------------------------

Summary of changes:
 nss/shadow.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
nss-pam-ldapd
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/