Public bug reported: Ubuntu Release 11.04
tar -chf test.tar someDirectory will generate a hardlink for each file that contained a *symbolic* link in its path in the original directory. Only writing tar --hard-dereference -chf test.tar someDirectory will prevent this from happening and store all files, also the ones reached through symbolic links, as plain files, removing all indications that there once were links. To me, this is a bug, since a) the option -h alone should cause all symbolic links to disappear, with the files originally reached through a symbolic link being dumped as plain files and b) I don't see any good reason in creating hardlinks (possibly later on as well, after extracting the file again) for symlinks, effectively changing one kind of link into the other. Expected behaviour to me would be that of tar 1.23, which stores symbolically linked files as plain files, just like the documentation (for both tar versions) says: "-h follow symlinks; archive and dump the files they point to" To me, this bug is a real showstopper because it causes related trouble in a project I'm working in. A rapid resolution would be extremely nice. ** Affects: tar (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/887107 Title: -h seems to store symlinks as hardlinks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tar/+bug/887107/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs