aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-19 19:36:17 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-19 19:36:37 +0100
commite4b94b1f7ca0cdfdbc3bebcbbc2ef14e85ede065 (patch)
treed4c739ba13e1363d05734461574b0e7de5411c21 /lib/fstree
parent573edeb13b5b71f90fc1d819af6748cb93d5604e (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.c2
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 {