mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Add more shortcircuits (for $$ cases)
This commit is contained in:
parent
f4f48b1a80
commit
0ec43c31ba
1 changed files with 9 additions and 3 deletions
|
|
@ -156,7 +156,9 @@ parse_acl(
|
|||
|| strcmp(right, ".*") == 0
|
||||
|| strcmp(right, ".*$") == 0
|
||||
|| strcmp(right, "^.*") == 0
|
||||
|| strcmp(right, "^.*$") == 0 )
|
||||
|| strcmp(right, "^.*$$") == 0
|
||||
|| strcmp(right, ".*$$") == 0
|
||||
|| strcmp(right, "^.*$$") == 0 )
|
||||
{
|
||||
a->acl_dn_pat = ch_strdup( "*" );
|
||||
|
||||
|
|
@ -274,14 +276,18 @@ parse_acl(
|
|||
} else if ( strcmp( right, ".+" ) == 0
|
||||
|| strcmp( right, "^.+" ) == 0
|
||||
|| strcmp( right, ".+$" ) == 0
|
||||
|| strcmp( right, "^.+$" ) == 0 )
|
||||
|| strcmp( right, "^.+$" ) == 0
|
||||
|| strcmp( right, ".+$$" ) == 0
|
||||
|| strcmp( right, "^.+$$" ) == 0 )
|
||||
{
|
||||
pat = ch_strdup( "users" );
|
||||
|
||||
} else if ( strcmp( right, ".*" ) == 0
|
||||
|| strcmp( right, "^.*" ) == 0
|
||||
|| strcmp( right, ".*$" ) == 0
|
||||
|| strcmp( right, "^.*$" ) == 0 )
|
||||
|| strcmp( right, "^.*$" ) == 0
|
||||
|| strcmp( right, ".*$$" ) == 0
|
||||
|| strcmp( right, "^.*$$" ) == 0 )
|
||||
{
|
||||
pat = ch_strdup( "*" );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue