summaryrefslogtreecommitdiff
path: root/include/fstree.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fstree.h')
-rw-r--r--include/fstree.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fstree.h b/include/fstree.h
index a63c593..44428cd 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -183,4 +183,13 @@ void tree_node_sort_recursive(tree_node_t *root);
*/
sqfs_u32 get_source_date_epoch(void);
+/*
+ Convert back to forward slashed, remove all preceeding and trailing slashes,
+ collapse all sequences of slashes, remove all path components that are '.'
+ and returns failure state if one of the path components is '..'.
+
+ Returns 0 on success.
+*/
+int canonicalize_name(char *filename);
+
#endif /* FSTREE_H */