From 687e44297071c95004d47e389fc409b951a8f9ff Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 27 Apr 2020 20:19:46 +0200 Subject: Cleanup/fix: gensquashfs: split directory scanning from xattr scanning On the one hand, this commit cleanes the code a bit by splitting the "scan directory contents" code from the "scan xattrs from directory contents" and moving the later in a seperate file. On the other hand, the xattr scanning is now done *after* the fstree is post processed, which includes sorting it. This way, the xattrs are always added in a deterministic, reproducible order. Signed-off-by: David Oberhollenzer --- bin/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/Makemodule.am') diff --git a/bin/Makemodule.am b/bin/Makemodule.am index 4199ac5..778636c 100644 --- a/bin/Makemodule.am +++ b/bin/Makemodule.am @@ -28,7 +28,7 @@ sqfsdiff_LDADD += $(PTHREAD_LIBS) gensquashfs_SOURCES = bin/gensquashfs/mkfs.c bin/gensquashfs/mkfs.h gensquashfs_SOURCES += bin/gensquashfs/options.c bin/gensquashfs/selinux.c -gensquashfs_SOURCES += bin/gensquashfs/dirscan.c +gensquashfs_SOURCES += bin/gensquashfs/dirscan.c bin/gensquashfs/dirscan_xattr.c gensquashfs_LDADD = libcommon.a libsquashfs.la libfstree.a gensquashfs_LDADD += libcompat.a $(LIBSELINUX_LIBS) $(LZO_LIBS) gensquashfs_LDADD += $(PTHREAD_LIBS) -- cgit v1.2.3