named: don't leak mktemp files on reload
authorPhilip Prindeville <redacted>
Tue, 15 Mar 2022 01:52:18 +0000 (19:52 -0600)
committerRosen Penev <redacted>
Tue, 15 Mar 2022 22:20:15 +0000 (15:20 -0700)
commit9e4485b1564b552b5780df5327187e73f2b80349
treee6d0cf2c1e359280aa2b07ca5b2749c3c447a2d1
parent59b89ae0663cbd089ab3a8fafb021894ea02552e
named: don't leak mktemp files on reload

Unless we're using "mktemp -u ..." (not recommended), it will
create the temp file as part of its safety checking.  Thus you
should only create the name (file) if you're going to use it,
and always remove it if you have created it.

Signed-off-by: Philip Prindeville <redacted>
net/bind/files/named.init
git clone https://git.99rst.org/PROJECT