bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCHv2 0/7] Re: temp file suffixes: mktemp DWIM


From: Jim Meyering
Subject: Re: [PATCHv2 0/7] Re: temp file suffixes: mktemp DWIM
Date: Thu, 05 Nov 2009 16:35:32 +0100

Jim Meyering wrote:
> And this is the final required change:
>
>     $ ./mktemp foo-XXX
>     foo-dgc
>     ./mktemp: write error
>
> Subject: [PATCH] mktemp: don't try to close stdout twice
>
> * src/mktemp.c (main): Rather than calling close_stream (which would
> make atexit-called close_stdout try to close it a second time),
> check for write failure via ferror and fflush.

Without those two changes, most of the tests would fail for me,
so I've pushed them.  Now they pass once again.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]