s3:lib: add a new samba_path_matching* infrastructure
authorStefan Metzmacher <metze@samba.org>
Wed, 9 Jun 2021 12:44:39 +0000 (14:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 1 Jul 2021 13:02:31 +0000 (13:02 +0000)
commit845a59919e528d083b1ab025844c41155ac93e43
tree86a649f39837643810efc87ab4032f9c4eb90182
parent0a459c6b2df45895c7a89a65ce736a1402a88dcc
s3:lib: add a new samba_path_matching* infrastructure

This aims to replace the current is_in_path() code in the long run.

For now it implements samba_path_matching_mswild_create()
in order to replace is_in_path() in the long run.

But there will be other "backends" using regexec() too.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/util_matching.c [new file with mode: 0644]
source3/lib/util_matching.h [new file with mode: 0644]
source3/torture/test_matching.c
source3/wscript_build