udev: do not re-create database on remove event
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Oct 2024 15:55:43 +0000 (00:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Oct 2024 21:32:39 +0000 (06:32 +0900)
commit5b2dce150d5eadcd33d620e095c9c1e2de51dd24
tree505edf109ead1a33693a7de761621372bea2d432
parent709fdcc75ab021329182d5f9a0ff968c50a95c4b
udev: do not re-create database on remove event

Fixes a bug introduced by f6bda694f908cc227b002570b893029aa4c9e173 (v256).

With the offending commit, on remove event, database file for a device is once
removed in event_execute_rules_on_remove(), but later re-created here.
This fixes the issue, and makes the database file not re-created on remove event.
src/udev/udev-worker.c