Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/passwd.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-03-13 19:29:28 +0100
committerArthur de Jong <arthur@arthurdejong.org>2012-03-13 19:29:28 +0100
commit9e682fa2a633fd69ce2e6b4b987bda04f02424cc (patch)
tree771fb4b925ede600362c1545d615d6c949ecbece /nslcd/passwd.c
parentcfed0d3c19a6998cc320c85b8f95b08934739703 (diff)
make whether or not to do case-sensitive filtering configurable (patch by Matthew L. Dailey)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1634 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/passwd.c')
-rw-r--r--nslcd/passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/passwd.c b/nslcd/passwd.c
index 73dd9f5..a6d0d5b 100644
--- a/nslcd/passwd.c
+++ b/nslcd/passwd.c
@@ -556,7 +556,7 @@ static int write_passwd(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser,
attmap_get_value(entry,attmap_passwd_loginShell,shell,sizeof(shell));
/* write the entries */
for (i=0;usernames[i]!=NULL;i++)
- if ((requser==NULL)||(strcmp(requser,usernames[i])==0))
+ if ((requser==NULL)||(STR_CMP(requser,usernames[i])==0))
{
if (!isvalidname(usernames[i]))
{