I'm seeing files piped in a 'find -print' listing archived twice somehow by GNU tar. I checked my find listing and it's only providing the file names a single time. BSD tar is reporting a hardlink error however checking the files with 'ls -l' and 'stat' they are only being referenced a single time. Passing in the directory instead of providing a piped in file list appears to solved the problem. Unsure if this is a bug or if it should be filed somewhere, but here are the steps to reproduce.
Reproduction: 1. Debian Trixie v13 GNU Tar 1.35, MacOS BSD Tar 3.5.1 2. Error encountered: Skipping hardlink pointing to itself found on MacOS 12.7.6 only when creating a piped tar to stdout on Debian Linux. 3. Steps a) find dir -print0 | xargs -0 tar -cv b) Noticing file names appear twice in listing c) Untar using BSD on MacOS and there is the hardlink pointing to itself error To solve don't pipe in the file list: d) cd dir && tar -cvf - archive Thanks, Nick
