Re: [PATCH 2/2] sequencer: use O_TRUNC to truncate files
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 1, 2017, 15:34 UTC
- Message-ID
- <alpine.DEB.2.21.1.1711011633520.6482@virtualbox>
- In-Reply-To
- <6b8e2a79-302e-7e69-00bd-f4643d5195af@web.de>
Hi René,
On Tue, 31 Oct 2017, René Scharfe wrote:
> Cut off any previous content of the file to be rewritten by passing the > flag O_TRUNC to open(2) instead of calling ftruncate(2) at the end. > That's easier and shorter.
Sure.
Thanks, Dscho