diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-09-08 15:06:33 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-09-08 15:06:33 +0200 |
commit | 6ff85733d6e3a50354fb1ff7ac3d3ab5b6825bee (patch) | |
tree | 309168248916970758f61e3c0f25d3e86c4c97a4 /nslcd | |
parent | 4db70dd0b3182cae690fee8cb21a7a8d51864dab (diff) |
grow gecos buffer size and consistency improvements to other buffers (r1540 from 0.8 branch, r1727 from 0.7 branch)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.7.15+squeeze@1750 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/network.c | 2 | ||||
-rw-r--r-- | nslcd/passwd.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nslcd/network.c b/nslcd/network.c index 89e0bea..7ed3895 100644 --- a/nslcd/network.c +++ b/nslcd/network.c @@ -65,7 +65,7 @@ static const char *network_attrs[3]; 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; diff --git a/nslcd/passwd.c b/nslcd/passwd.c index 1c4e8e4..82c5062 100644 --- a/nslcd/passwd.c +++ b/nslcd/passwd.c @@ -297,9 +297,9 @@ static int write_passwd(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser, 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]; int i,j; /* get the usernames for this entry */ usernames=myldap_get_values(entry,attmap_passwd_uid); |