lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Thu Nov 22 23:33:23 2012
New Revision: 1838
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1838&view=revision

Log:
ensure that values are logged as unsigned numbers

Modified:
   nss-pam-ldapd/nslcd/group.c
   nss-pam-ldapd/nslcd/passwd.c
   nss-pam-ldapd/nslcd/protocol.c
   nss-pam-ldapd/nslcd/rpc.c
   nss-pam-ldapd/nslcd/service.c

Modified: nss-pam-ldapd/nslcd/group.c
==============================================================================
--- nss-pam-ldapd/nslcd/group.c Sun Nov 18 22:14:27 2012        (r1837)
+++ nss-pam-ldapd/nslcd/group.c Thu Nov 22 23:33:23 2012        (r1838)
@@ -335,7 +335,7 @@
   gid_t gid;
   char filter[4096];
   READ_TYPE(fp,gid,gid_t);
-  log_setrequest("group=%d",(int)gid);,
+  log_setrequest("group=%lu",(unsigned long int)gid);,
   NSLCD_ACTION_GROUP_BYGID,
   mkfilter_group_bygid(gid,filter,sizeof(filter)),
   write_group(fp,entry,NULL,&gid,1,session)

Modified: nss-pam-ldapd/nslcd/passwd.c
==============================================================================
--- nss-pam-ldapd/nslcd/passwd.c        Sun Nov 18 22:14:27 2012        (r1837)
+++ nss-pam-ldapd/nslcd/passwd.c        Thu Nov 22 23:33:23 2012        (r1838)
@@ -615,7 +615,7 @@
   uid_t uid;
   char filter[4096];
   READ_TYPE(fp,uid,uid_t);
-  log_setrequest("passwd=%d",(int)uid);
+  log_setrequest("passwd=%lu",(unsigned long int)uid);
   if (uid<nslcd_cfg->ldc_nss_min_uid)
   {
     /* return an empty result */

Modified: nss-pam-ldapd/nslcd/protocol.c
==============================================================================
--- nss-pam-ldapd/nslcd/protocol.c      Sun Nov 18 22:14:27 2012        (r1837)
+++ nss-pam-ldapd/nslcd/protocol.c      Thu Nov 22 23:33:23 2012        (r1838)
@@ -185,7 +185,7 @@
   int protocol;
   char filter[4096];
   READ_INT32(fp,protocol);
-  log_setrequest("protocol=%d",protocol);,
+  log_setrequest("protocol=%lu",(unsigned long int)protocol);,
   NSLCD_ACTION_PROTOCOL_BYNUMBER,
   mkfilter_protocol_bynumber(protocol,filter,sizeof(filter)),
   write_protocol(fp,entry,NULL)

Modified: nss-pam-ldapd/nslcd/rpc.c
==============================================================================
--- nss-pam-ldapd/nslcd/rpc.c   Sun Nov 18 22:14:27 2012        (r1837)
+++ nss-pam-ldapd/nslcd/rpc.c   Thu Nov 22 23:33:23 2012        (r1838)
@@ -185,7 +185,7 @@
   int number;
   char filter[4096];
   READ_INT32(fp,number);
-  log_setrequest("rpc=%d",number);,
+  log_setrequest("rpc=%lu",(unsigned long int)number);,
   NSLCD_ACTION_RPC_BYNUMBER,
   mkfilter_rpc_bynumber(number,filter,sizeof(filter)),
   write_rpc(fp,entry,NULL)

Modified: nss-pam-ldapd/nslcd/service.c
==============================================================================
--- nss-pam-ldapd/nslcd/service.c       Sun Nov 18 22:14:27 2012        (r1837)
+++ nss-pam-ldapd/nslcd/service.c       Thu Nov 22 23:33:23 2012        (r1838)
@@ -231,7 +231,7 @@
   char filter[4096];
   READ_INT32(fp,number);
   READ_STRING(fp,protocol);
-  log_setrequest("service=%d/%s",number,protocol);,
+  log_setrequest("service=%lu/%s",(unsigned long int)number,protocol);,
   NSLCD_ACTION_SERVICE_BYNUMBER,
   mkfilter_service_bynumber(number,protocol,filter,sizeof(filter)),
   write_service(fp,entry,NULL,protocol)
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/