Usage of bsdtar --no-mac-metadata on macOS

Usage of bsdtar --no-mac-metadata on macOS 图片 1

I’m new here so please let me know if this is the appropriate Stack Exchange for this question, or if my question could be formatted or phrased better!

I encountered this exception while extracting an XZ-compressed tarball created by bsdtar on macOS:

After doing some research, it seems that the hidden files macOS Finder uses to store metadata (i.e. the infamous .DS_store) sometimes don’t play nice with tar. The man page for bsdtar states that by default, macOS metadata is included when creating archives and that the switch --no-mac-metadata can be used to suppress this behavior.

However, even when using this switch both when creating and extracting the archive, the same error still occurs. Inspecting the content of the tarball, it seems .DS_store’s are still included despite the switch.

Is there an error with my usage, or could it be a bug in bsdtar itself?

UPDATE: macOS's built-in graphical Archive Utility tool is also unable to extract this archive, while the exact same archive created on GNU/Linux using GNU tar extracts perfectly on macOS using either Archive Utility or bsdtar.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论