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

From: Erik Auerswald <[email-masked]>
Date: Sun, 16 Oct 2011 01:13:52 +0200

Hi,

On Sat, Oct 15, 2011 at 01:40:17PM -0700, Ambrose Feinstein wrote:
> Trivial reproduction:
> 
> $ true | tac - -
> tac: cannot create temporary file in `/tmp': Invalid argument
> 
> This is present in coreutils 8.14.

This is present in coreutils 8.13 as well:

$ tac <(echo a) <(echo b)
tac: cannot create temporary file in `/tmp': Invalid argument
a
$ tac --version
tac (GNU coreutils) 8.13
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Lepreau and David MacKenzie.

Erik