Re: [Bug-tar] fix an eternal loop in handle_option -- tar hangs while reading whitespace from -T file

2014-04-01 Thread Pavel Raiskup
On Thursday 27 of March 2014 19:45:54 Nathan Stratton Treadway wrote: On Wed, Mar 26, 2014 at 18:43:54 +0100, Vitezslav Cizek wrote: $ echo bar | tar -cvf t.tar -T - bar $ echo bar | tar -cvf t.tar -T - [...hangs...]^C Thanks for reproducer! As this is easily scriptable, could we

Re: [Bug-tar] fix an eternal loop in handle_option -- tar hangs while reading whitespace from -T file

2014-03-27 Thread Nathan Stratton Treadway
On Wed, Mar 26, 2014 at 18:43:54 +0100, Vitezslav Cizek wrote: --- a/src/names.c +++ b/src/names.c @@ -439,7 +439,7 @@ handle_option (const char *str) int i; while (*str isspace (*str)) -; +str++; In case anyone experiences this bug and goes looking for help on it: the