diff options
Diffstat (limited to 'tar')
-rw-r--r-- | tar/sqfs2tar.c | 2 | ||||
-rw-r--r-- | tar/tar2sqfs.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c index 4d31fbe..935b687 100644 --- a/tar/sqfs2tar.c +++ b/tar/sqfs2tar.c @@ -414,7 +414,7 @@ static int write_tree_dfs(const sqfs_tree_node_t *n) } } - target = S_ISLNK(sb.st_mode) ? n->inode->slink_target : NULL; + target = S_ISLNK(sb.st_mode) ? (char *)n->inode->extra : NULL; ret = write_tar_header(out_file, &sb, name, target, xattr, record_counter++); diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c index 12055c3..b180739 100644 --- a/tar/tar2sqfs.c +++ b/tar/tar2sqfs.c @@ -275,7 +275,6 @@ static int write_file(tar_header_decoded_t *hdr, file_info_t *fi, return -1; } - inode->block_sizes = (sqfs_u32 *)inode->extra; inode->base.type = SQFS_INODE_FILE; sqfs_inode_set_file_size(inode, filesize); sqfs_inode_set_frag_location(inode, 0xFFFFFFFF, 0xFFFFFFFF); |