]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs: accept gnu.translator xattrs in tar files fed to mke2fs -d
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Mon, 26 Aug 2024 22:45:16 +0000 (00:45 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 29 Nov 2024 08:01:20 +0000 (03:01 -0500)
https://github.com/tytso/e2fsprogs/issues/192
https://github.com/tytso/e2fsprogs/pull/194

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode_libarchive.c

index 8705eb168c4149f19fc03ec9a14d6a3d431f706b..ff697f4c81ddd0c0d0ccd770b16892a20f6c7124 100644 (file)
@@ -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);