]> git.ipfire.org Git - thirdparty/libarchive.git/commit
pathmatch: Anchors within pattern not special 2924/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 18 Mar 2026 10:17:02 +0000 (11:17 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 18 Mar 2026 13:31:03 +0000 (14:31 +0100)
commitadf7edd191a36510fa6f9a3bcf63d5a9a5b419ad
treedcfadb82b70c22c5d134e61ed49e62e0ea119585
parent4613cc9d7926bc175d25ca07ddecfee22f0d45fa
pathmatch: Anchors within pattern not special

The anchor characters ^ and $ have only special meanings if they are
located at the beginning (^) or at the end ($) of the pattern. And even
then they are supposed to be only special if flags are set.

If they are located within the pattern itself, they are regular
characters regardless of flags.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_pathmatch.c
libarchive/test/test_archive_pathmatch.c