summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-07-13 11:07:23 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-07-23 14:08:40 +0900
commit298316ebdf2bc6e8c7d01d452a87377c5b0785e0 (patch)
tree020b5697b917d7b6eadc1d89f7090770a28a3146
parent5e81e84c86c00cb83b80c955682d038199c541fe (diff)
downloadsystemd-298316ebdf2bc6e8c7d01d452a87377c5b0785e0.tar.gz
udev: fix error check
-rw-r--r--src/udev/udevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 63f41210dd..bf6d347fb6 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -2013,7 +2013,7 @@ static int main_loop(Manager *manager) {
udev_builtin_init();
r = udev_rules_load(&manager->rules, arg_resolve_name_timing);
- if (!manager->rules)
+ if (r < 0)
return log_error_errno(r, "Failed to read udev rules: %m");
r = udev_rules_apply_static_dev_perms(manager->rules);