Re: [PATCH] ar: Always close newfd in do_oper_insert.

2021-04-13 Thread Mark Wielaard
On Sat, Apr 03, 2021 at 07:24:42PM +0200, Mark Wielaard wrote: > newfd is normally created by mkstemp given the original fd exists. > Otherwise it will created by open from arfname. In the second case > newfd might not get closed. Preventd this by always trying to close > it after errout. Pushed.

[PATCH] ar: Always close newfd in do_oper_insert.

2021-04-03 Thread Mark Wielaard
newfd is normally created by mkstemp given the original fd exists. Otherwise it will created by open from arfname. In the second case newfd might not get closed. Preventd this by always trying to close it after errout. Signed-off-by: Mark Wielaard --- src/ChangeLog | 4 src/ar.c | 3 ++