Skip to content

Commit

Permalink
mke2fs: accept gnu.translator xattrs in tar files fed to mke2fs -d
Browse files Browse the repository at this point in the history
#192
#194

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
josch authored and tytso committed Nov 29, 2024
1 parent 064b8da commit 6ba18ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/create_inode_libarchive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ba18ef

Please sign in to comment.