lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1744 - nss-pam-ldapd/nslcd

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

nss-pam-ldapd commit: r1744 - nss-pam-ldapd/nslcd



Author: arthur
Date: Sat Sep  1 22:14:35 2012
New Revision: 1744
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1744&view=revision

Log:
include an explicit cast to int when printing gid_t (fixes r1723)

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

Modified: nss-pam-ldapd/nslcd/nslcd.c
==============================================================================
--- nss-pam-ldapd/nslcd/nslcd.c Fri Aug 31 23:46:38 2012        (r1743)
+++ nss-pam-ldapd/nslcd/nslcd.c Sat Sep  1 22:14:35 2012        (r1744)
@@ -745,10 +745,10 @@
     /* load supplementary groups */
     if (initgroups(nslcd_cfg->ldc_uidname,nslcd_cfg->ldc_gid)<0)
       log_log(LOG_WARNING,"cannot initgroups(\"%s\",%d) (ignored): %s",
-              nslcd_cfg->ldc_uidname,nslcd_cfg->ldc_gid,strerror(errno));
+              nslcd_cfg->ldc_uidname,(int)nslcd_cfg->ldc_gid,strerror(errno));
     else
       log_log(LOG_DEBUG,"initgroups(\"%s\",%d) done",
-              nslcd_cfg->ldc_uidname,nslcd_cfg->ldc_gid);
+              nslcd_cfg->ldc_uidname,(int)nslcd_cfg->ldc_gid);
 #else /* not HAVE_INITGROUPS */
 #ifdef HAVE_SETGROUPS
     /* just drop all supplemental groups */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/