From: Johannes Schauer Marin Rodrigues Date: Mon, 26 Aug 2024 22:45:16 +0000 (+0200) Subject: mke2fs: accept gnu.translator xattrs in tar files fed to mke2fs -d X-Git-Tag: v1.47.2-rc1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ba18ef7bf4bec1f2fd738d52a42181baa6bafbf;p=thirdparty%2Fe2fsprogs.git mke2fs: accept gnu.translator xattrs in tar files fed to mke2fs -d https://github.com/tytso/e2fsprogs/issues/192 https://github.com/tytso/e2fsprogs/pull/194 Signed-off-by: Theodore Ts'o --- diff --git a/misc/create_inode_libarchive.c b/misc/create_inode_libarchive.c index 8705eb16..ff697f4c 100644 --- a/misc/create_inode_libarchive.c +++ b/misc/create_inode_libarchive.c @@ -442,7 +442,7 @@ static errcode_t set_inode_xattr_tar(ext2_filsys fs, ext2_ino_t ino, dl_archive_entry_xattr_reset(entry); while (dl_archive_entry_xattr_next(entry, &name, &value, &value_size) == ARCHIVE_OK) { - if (strcmp(name, "security.capability") != 0) + if (strcmp(name, "security.capability") != 0 && strcmp(name, "gnu.translator")) continue; retval = ext2fs_xattr_set(handle, name, value, value_size);