diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-03-13 19:29:28 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-03-13 19:29:28 +0100 |
commit | 9e682fa2a633fd69ce2e6b4b987bda04f02424cc (patch) | |
tree | 771fb4b925ede600362c1545d615d6c949ecbece /nslcd/rpc.c | |
parent | cfed0d3c19a6998cc320c85b8f95b08934739703 (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/rpc.c')
-rw-r--r-- | nslcd/rpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/rpc.c b/nslcd/rpc.c index 90cb89e..e8691c6 100644 --- a/nslcd/rpc.c +++ b/nslcd/rpc.c @@ -124,9 +124,9 @@ static int write_rpc(TFILE *fp,MYLDAP_ENTRY *entry,const char *reqname) if (name==NULL) name=aliases[0]; /* check case of returned rpc entry */ - if ((reqname!=NULL)&&(strcmp(reqname,name)!=0)) + if ((reqname!=NULL)&&(STR_CMP(reqname,name)!=0)) { - for (i=0;(aliases[i]!=NULL)&&(strcmp(reqname,aliases[i])!=0);i++) + for (i=0;(aliases[i]!=NULL)&&(STR_CMP(reqname,aliases[i])!=0);i++) /* nothing here */ ; if (aliases[i]==NULL) return 0; /* neither the name nor any of the aliases matched */ |