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/Makemodule.am | 2 +- unpack/restore_fstree.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'unpack') diff --git a/unpack/Makemodule.am b/unpack/Makemodule.am index 2609db4..b137787 100644 --- a/unpack/Makemodule.am +++ b/unpack/Makemodule.am @@ -2,6 +2,6 @@ rdsquashfs_SOURCES = unpack/rdsquashfs.c unpack/rdsquashfs.h rdsquashfs_SOURCES += unpack/list_files.c unpack/options.c rdsquashfs_SOURCES += unpack/restore_fstree.c unpack/describe.c rdsquashfs_SOURCES += unpack/fill_files.c unpack/dump_xattrs.c -rdsquashfs_LDADD = libcommon.a libsquashfs.la libutil.la +rdsquashfs_LDADD = libcommon.a libcompat.a libsquashfs.la libutil.la bin_PROGRAMS += rdsquashfs 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