aboutsummaryrefslogtreecommitdiff
path: root/unpack/restore_fstree.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack/restore_fstree.c')
-rw-r--r--unpack/restore_fstree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unpack/restore_fstree.c b/unpack/restore_fstree.c
index 00d75ef..8f99439 100644
--- a/unpack/restore_fstree.c
+++ b/unpack/restore_fstree.c
@@ -57,9 +57,9 @@ static int create_node(const sqfs_tree_node_t *n, const char *name)
}
break;
case S_IFLNK:
- if (symlink(n->inode->slink_target, name)) {
+ if (symlink((const char *)n->inode->extra, name)) {
fprintf(stderr, "ln -s %s %s: %s\n",
- n->inode->slink_target, name,
+ (const char *)n->inode->extra, name,
strerror(errno));
return -1;
}