s3:lib: add samba_path_matching_regex_sub1_create()
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Jun 2021 19:03:42 +0000 (19:03 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 1 Jul 2021 13:02:31 +0000 (13:02 +0000)
commitbc39450d80b2f319501747d8b285d0d70ca6505b
treebe2a2327dbcd1528109fb75376b01bb88fb9acba
parent845a59919e528d083b1ab025844c41155ac93e43
s3:lib: add samba_path_matching_regex_sub1_create()

This will allow the usage 'POSIX Basic Regular Expression'
instead of 'ms wildcard' strings.

We allow exactly one 'subexpression' starting with '\(' and
ending with '\)' in order to find a replacement (byte) region
in the matching string.

This will be used in the vfs_preopen module in the following
commits.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/util_matching.c
source3/lib/util_matching.h
source3/selftest/tests.py
source3/torture/proto.h
source3/torture/test_matching.c
source3/torture/torture.c