Apply fix to "group/group_objectclass/member_atribute" parsing

suggested by Gerrit Thomson
This commit is contained in:
Kurt Zeilenga 1999-04-10 01:34:55 +00:00
parent f34bd50e30
commit 93fa38cd08

View file

@ -203,14 +203,14 @@ parse_acl(
b->a_dnattr = ch_strdup( right );
#ifdef SLAPD_ACLGROUPS
} else if ( strcasecmp( left, "group" ) == 0 ) {
} else if ( strncasecmp( left, "group", sizeof("group")-1 ) == 0 ) {
char *name = NULL;
char *value = NULL;
regtest(fname, lineno, right);
/* format of string is "group/objectClassValue/groupAttrName"
*/
if ((value = strchr(right, '/')) != NULL) {
if ((value = strchr(left, '/')) != NULL) {
*value++ = '\0';
if (value && *value && (name = strchr(value, '/')) != NULL)
*name++ = '\0';