Perhaps you could write a patch to have tar check for loops when the -h option is given? It could use the hash-table code already in there.
Yes, it's a problem if you give 'tar' an infinite tree, because tar
tries very hard to dump the whole thing, and having it check for loops
would slow it down. The simplest workaround I can think of is to not
use -h unless you know the tree is finite.
- [Bug-tar] Circular symlinks lead to segfault Florian Oppermann
- Re: [Bug-tar] Circular symlinks lead to segfault Paul Eggert
- Re: [Bug-tar] Circular symlinks lead to segfaul... Joerg Schilling
- Re: [Bug-tar] Circular symlinks lead to segfaul... Pavel Raiskup
- Re: [Bug-tar] Circular symlinks lead to seg... Paul Eggert
- Re: [Bug-tar] Circular symlinks lead to... Sergey Poznyakoff
- Re: [Bug-tar] Circular symlinks le... Pavel Raiskup
- Re: [Bug-tar] Circular symlink... Pavel Raiskup
- Re: [Bug-tar] Circular sym... Pavel Raiskup
- Re: [Bug-tar] Circular sym... Sergey Poznyakoff
- Re: [Bug-tar] Circular sym... Pavel Raiskup
- Re: [Bug-tar] Circular sym... Pavel Raiskup
