From 0ec43c31bab5c343bd3b930829a695e9dcd2f15e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 26 Oct 1999 22:29:47 +0000 Subject: [PATCH] Add more shortcircuits (for $$ cases) --- servers/slapd/aclparse.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 2180a120c1..7f008dfd03 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -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( "*" ); -- 2.39.5