lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Thu Sep  8 22:57:09 2011
New Revision: 1540
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1540&view=revision

Log:
grow gecos buffer size and consistency improvements to other buffers

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

Modified: nss-pam-ldapd/nslcd/network.c
==============================================================================
--- nss-pam-ldapd/nslcd/network.c       Thu Sep  8 22:52:51 2011        (r1539)
+++ nss-pam-ldapd/nslcd/network.c       Thu Sep  8 22:57:09 2011        (r1540)
@@ -65,7 +65,7 @@
 static int mkfilter_network_byname(const char *name,
                                    char *buffer,size_t buflen)
 {
-  char safename[1024];
+  char safename[300];
   /* escape attribute */
   if (myldap_escape(name,safename,sizeof(safename)))
     return -1;

Modified: nss-pam-ldapd/nslcd/passwd.c
==============================================================================
--- nss-pam-ldapd/nslcd/passwd.c        Thu Sep  8 22:52:51 2011        (r1539)
+++ nss-pam-ldapd/nslcd/passwd.c        Thu Sep  8 22:57:09 2011        (r1540)
@@ -442,9 +442,9 @@
   int numuids;
   char gidbuf[32];
   gid_t gid;
-  char gecos[100];
-  char homedir[100];
-  char shell[100];
+  char gecos[1024];
+  char homedir[256];
+  char shell[64];
   char passbuffer[64];
   int i,j;
   /* get the usernames for this entry */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/