diff options
| author | Marta Rybczynska <rybczynska@gmail.com> | 2023-01-03 15:03:59 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-26 23:39:05 +0000 |
| commit | b947c51178283875f07adb6e1e590de6884f6c9a (patch) | |
| tree | 3201a3eea6e91fe7abada3a2aa3ba350c0fdea39 /meta/classes-recipe | |
| parent | da318dd088a3573e3abefdf14ea9b8bfecf36e3c (diff) | |
| download | poky-b947c51178283875f07adb6e1e590de6884f6c9a.tar.gz | |
cve-update-db-native: avoid incomplete updates
The database update has been done on the original file. In case of
network connection issues, temporary outage of the NVD server or
a similar situation, the function could exit with incomplete data
in the database. This patch solves the issue by performing the update
on a copy of the database. It replaces the main one only if the whole
update was successful.
See https://bugzilla.yoctoproject.org/show_bug.cgi?id=14929
Reported-by: Alberto Pianon <alberto@pianon.eu>
(From OE-Core rev: 66aa05be4c237d24295d5e02de6e2dbef43af6dc)
Signed-off-by: Marta Rybczynska <marta.rybczynska@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8efe99214d8b005f0ecac690ce5ba17b31758f92)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
0 files changed, 0 insertions, 0 deletions
