Tar hangs with 100 % CPU load if the
--files-from <LISTFILE> option is used and the
<LISTFILE> contains leading spaces. Why is that?
To reproduce: Given two files
file2 of arbitrary content and a file
list with the following content:
When I issue
tar czf test.tar.gz --files-from list, the command will never finish, and system load is ~ 1.
If I change
list to read
tar command completes without problems.
This happens on both Ubuntu 14.04.2 LTS server edition and on my Ubuntu 14.10 desktop; both have GNU tar 1.27.1.