summaryrefslogtreecommitdiffstats
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-06-25 14:40:35 +0200
committerGitHub <noreply@github.com>2020-06-25 14:40:35 +0200
commitf49bead3b0aa826bac0d5d5d061835e5ee2813fc (patch)
treeb8f0ac6eef9c6c4a01a2bcb5b831859d9f0505ad /src/udev/udevd.c
parentMerge pull request #16249 from bluca/root_verity_sig (diff)
parentfuzz-udev-rules: -ENOBUFS should be accepted too (diff)
downloadsystemd-f49bead3b0aa826bac0d5d5d061835e5ee2813fc.tar.xz
systemd-f49bead3b0aa826bac0d5d5d061835e5ee2813fc.zip
Merge pull request #16257 from keszybz/two-fuzzer-issues
Two fuzzer issues
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 8db19e4f89..5f1c0934de 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -925,7 +925,7 @@ static void event_queue_start(Manager *manager) {
udev_builtin_init();
if (!manager->rules) {
- r = udev_rules_new(&manager->rules, arg_resolve_name_timing);
+ r = udev_rules_load(&manager->rules, arg_resolve_name_timing);
if (r < 0) {
log_warning_errno(r, "Failed to read udev rules: %m");
return;
@@ -1787,7 +1787,7 @@ static int main_loop(Manager *manager) {
udev_builtin_init();
- r = udev_rules_new(&manager->rules, arg_resolve_name_timing);
+ r = udev_rules_load(&manager->rules, arg_resolve_name_timing);
if (!manager->rules)
return log_error_errno(r, "Failed to read udev rules: %m");