From eafaffa0f09b7c22eed906ef5356b1460d44da55 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 22 Nov 2019 11:01:09 +0100 Subject: Cleanup: move all the compatibillity fluff to a dedicated "libcompat" Signed-off-by: David Oberhollenzer --- unpack/restore_fstree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unpack/restore_fstree.c') diff --git a/unpack/restore_fstree.c b/unpack/restore_fstree.c index dbcebfa..7cecf16 100644 --- a/unpack/restore_fstree.c +++ b/unpack/restore_fstree.c @@ -258,7 +258,7 @@ static int set_attribs(sqfs_xattr_reader_t *xattr, goto fail; } } - +#endif if (flags & UNPACK_CHOWN) { if (fchownat(AT_FDCWD, path, n->uid, n->gid, AT_SYMLINK_NOFOLLOW)) { @@ -276,7 +276,7 @@ static int set_attribs(sqfs_xattr_reader_t *xattr, goto fail; } } -#endif + free(path); return 0; fail: -- cgit v1.2.3