summaryrefslogtreecommitdiff
path: root/bin/rdsquashfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-04 20:01:59 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-08 19:17:35 +0200
commit3946cf086183f8dd4d5d115f52ba1b87560b7ce4 (patch)
tree2659b940b757d1bd177d00562bf8e41a333ef12e /bin/rdsquashfs
parent8c0aa2504199036eaaa09673ea93dcdcd79606ef (diff)
Move sqfs_tree_node_get_path to libsquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/rdsquashfs')
-rw-r--r--bin/rdsquashfs/describe.c4
-rw-r--r--bin/rdsquashfs/fill_files.c4
-rw-r--r--bin/rdsquashfs/restore_fstree.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/bin/rdsquashfs/describe.c b/bin/rdsquashfs/describe.c
index e0e22bc..1e723bc 100644
--- a/bin/rdsquashfs/describe.c
+++ b/bin/rdsquashfs/describe.c
@@ -17,7 +17,7 @@ static int print_name(const sqfs_tree_node_t *n, bool dont_escape)
if (canonicalize_name(name) != 0) {
fprintf(stderr, "Error sanitizing file path '%s'\n", name);
- free(name);
+ sqfs_free(name);
return -1;
}
@@ -47,7 +47,7 @@ static int print_name(const sqfs_tree_node_t *n, bool dont_escape)
fputc('"', stdout);
}
- free(name);
+ sqfs_free(name);
return 0;
}
diff --git a/bin/rdsquashfs/fill_files.c b/bin/rdsquashfs/fill_files.c
index 1afe6b8..8459c1e 100644
--- a/bin/rdsquashfs/fill_files.c
+++ b/bin/rdsquashfs/fill_files.c
@@ -89,7 +89,7 @@ static int add_file(const sqfs_tree_node_t *node)
if (canonicalize_name(path)) {
fprintf(stderr, "Invalid file path '%s'\n", path);
- free(path);
+ sqfs_free(path);
return -1;
}
@@ -104,7 +104,7 @@ static void clear_file_list(void)
size_t i;
for (i = 0; i < num_files; ++i)
- free(files[i].path);
+ sqfs_free(files[i].path);
free(files);
files = NULL;
diff --git a/bin/rdsquashfs/restore_fstree.c b/bin/rdsquashfs/restore_fstree.c
index 57582c2..cf5bc2a 100644
--- a/bin/rdsquashfs/restore_fstree.c
+++ b/bin/rdsquashfs/restore_fstree.c
@@ -141,7 +141,7 @@ static int create_node_dfs(const sqfs_tree_node_t *n, int flags)
printf("creating %s\n", name);
ret = create_node(n, name, flags);
- free(name);
+ sqfs_free(name);
if (ret)
return -1;
@@ -276,10 +276,10 @@ static int set_attribs(sqfs_xattr_reader_t *xattr,
}
}
- free(path);
+ sqfs_free(path);
return 0;
fail:
- free(path);
+ sqfs_free(path);
return -1;
}