ids-functions.pl: Use temporary file in downloader.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 14:14:08 +0000 (15:14 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 18 Dec 2018 14:14:08 +0000 (15:14 +0100)
commit25b6545a6e5523d67484e15c5d8bafd941c8c9ae
tree0701371e9b69aeb5741a188ae1a569b1c9614f76
parent96da5803a77ac8cae85fc8bc37e2153a19b5ab26
ids-functions.pl: Use temporary file in downloader.

Download the requested rules tarball into a temporay file
and if every thing is fine, replace the old by the
downloaded one.

In addition with the previously implemented file size check,
we are saved now from a corrupt rules tarball on disk.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl