提交 9c1c933c 编写于 作者: W WangFengTu

Fill xattrs in SCHILY only

Do not fill xattr in LIBARCHIVE.xattr because gnutar
can not recognize it and gnutar print warnings when untar.
Fill it in SCHILY.xattr is enough.
Signed-off-by: NWangFengTu <wangfengtu@huawei.com>
上级 29a89a93
...@@ -513,6 +513,7 @@ static int tar_all(int fd) ...@@ -513,6 +513,7 @@ static int tar_all(int fd)
w = archive_write_new(); w = archive_write_new();
archive_write_set_format_pax(w); archive_write_set_format_pax(w);
archive_write_set_options(w, "xattrheader=SCHILY");
ret = archive_write_open_fd(w, fd); ret = archive_write_open_fd(w, fd);
if (ret != ARCHIVE_OK) { if (ret != ARCHIVE_OK) {
ERROR("open archive write failed: %s", archive_error_string(w)); ERROR("open archive write failed: %s", archive_error_string(w));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册