diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-02-19 19:36:17 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-02-19 19:36:37 +0100 |
commit | e4b94b1f7ca0cdfdbc3bebcbbc2ef14e85ede065 (patch) | |
tree | d4c739ba13e1363d05734461574b0e7de5411c21 /lib/fstree | |
parent | 573edeb13b5b71f90fc1d819af6748cb93d5604e (diff) |
Fix: canonicalize path names in glob pattern matching
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree')
-rw-r--r-- | lib/fstree/fstree_from_file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c index d852e0b..465f81d 100644 --- a/lib/fstree/fstree_from_file.c +++ b/lib/fstree/fstree_from_file.c @@ -152,6 +152,8 @@ static int glob_node_callback(void *user, fstree_t *fs, tree_node_t *node) return -1; } + canonicalize_name(path); + ret = fnmatch(ctx->name_pattern, path, FNM_PATHNAME); free(path); } else { |