diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fstree.h | 9 | ||||
-rw-r--r-- | include/util/util.h | 9 |
2 files changed, 9 insertions, 9 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 */ diff --git a/include/util/util.h b/include/util/util.h index a133067..7aa4f31 100644 --- a/include/util/util.h +++ b/include/util/util.h @@ -33,13 +33,4 @@ void *alloc_flex(size_t base_size, size_t item_size, size_t nmemb); SQFS_INTERNAL void *alloc_array(size_t item_size, size_t nmemb); -/* - 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. -*/ -SQFS_INTERNAL int canonicalize_name(char *filename); - #endif /* UTIL_H */ |