bug#9762: tac fails when given multiple non-seekable inputs due to misuse of mkstemp()

2011-10-16 Thread Jim Meyering
Ambrose Feinstein wrote: > Trivial reproduction: > > $ true | tac - - > tac: cannot create temporary file in `/tmp': Invalid argument > > This is present in coreutils 8.14. > > The cause is the way "template" is reused in copy_to_temp(). The > "XX" suffix is clobbered by the first call to mkst

bug#9762: tac fails when given multiple non-seekable inputs due to misuse of mkstemp()

2011-10-16 Thread Jim Meyering
Jim Meyering wrote: ... > Thank you for the report. > In fixing that, I made three changes: > > maint: tac: remove sole use of sprintf in favor of stpcpy > tac: don't misbehave with multiple non-seekable inputs > tac: don't leak a file descriptor for each non-seekable input > > Before t

bug#9718: bugs in `date` command?

2011-10-16 Thread Voelker, Bernhard
Jim Meyering wrote: > Eric Blake wrote: > ... > > As currently coded in the grammar, this is correct. But if someone > > were willing to put forth the effort to update parsedate.y, as well as > > enhance the testsuite to cover things, it might be possible to improve > > the grammar to accept both