summaryrefslogtreecommitdiff
path: root/src/udev/udev-rules.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-06-24 13:26:05 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-06-25 08:51:21 +0200
commitf23810da209d3fb4bde156a09a1fa93957c82a49 (patch)
tree353f6b7db81069942c1a8ff32550a7a96f0d5181 /src/udev/udev-rules.c
parent85fbebe61a1aec2f86e36fb464283b6b55d3d76d (diff)
downloadsystemd-f23810da209d3fb4bde156a09a1fa93957c82a49.tar.gz
fuzz-udev-rules: -ENOBUFS should be accepted too
In udev_rules_load(), add a debug message. Otherwise there'd be no indication that parsing was aborted.
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r--src/udev/udev-rules.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 95951bceef..4efafffd40 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -1308,8 +1308,11 @@ int udev_rules_load(UdevRules **ret_rules, ResolveNameTiming resolve_name_timing
if (r < 0)
return log_debug_errno(r, "Failed to enumerate rules files: %m");
- STRV_FOREACH(f, files)
- (void) udev_rules_parse_file(rules, *f);
+ STRV_FOREACH(f, files) {
+ r = udev_rules_parse_file(rules, *f);
+ if (r < 0)
+ log_debug_errno(r, "Failed to read rules file %s, ignoring: %m", *f);
+ }
*ret_rules = TAKE_PTR(rules);
return 0;