summaryrefslogtreecommitdiff
path: root/unpack/list_files.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack/list_files.c')
-rw-r--r--unpack/list_files.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/unpack/list_files.c b/unpack/list_files.c
index 0d64010..c08c2dd 100644
--- a/unpack/list_files.c
+++ b/unpack/list_files.c
@@ -85,7 +85,7 @@ static void print_node_size(const sqfs_tree_node_t *n, char *buffer)
{
switch (n->inode->base.mode & S_IFMT) {
case S_IFLNK:
- print_size(strlen(n->inode->slink_target), buffer);
+ print_size(strlen((const char *)n->inode->extra), buffer);
break;
case S_IFREG: {
sqfs_u64 size;
@@ -151,7 +151,8 @@ void list_files(const sqfs_tree_node_t *node)
n->name);
if (S_ISLNK(n->inode->base.mode)) {
- printf(" -> %s\n", n->inode->slink_target);
+ printf(" -> %s\n",
+ (const char *)n->inode->extra);
} else {
fputc('\n', stdout);
}
@@ -164,7 +165,7 @@ void list_files(const sqfs_tree_node_t *node)
node->uid, node->gid, sizestr, node->name);
if (S_ISLNK(node->inode->base.mode)) {
- printf(" -> %s\n", node->inode->slink_target);
+ printf(" -> %s\n", (const char *)node->inode->extra);
} else {
fputc('\n', stdout);
}