Skip to content

Commit 22567a5

Browse files
dtardonbluca
authored andcommitted
udev-rules: pass the right error variable
(cherry picked from commit 75c64e5) (cherry picked from commit 5909e5c)
1 parent 5de929e commit 22567a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/udev/udev-rules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ int udev_rules_parse_file(UdevRules *rules, const char *filename, bool extra_che
14761476

14771477
r = hashmap_put_stats_by_path(&rules->stats_by_path, filename, &st);
14781478
if (r < 0)
1479-
return log_warning_errno(errno, "Failed to save stat for %s, ignoring: %m", filename);
1479+
return log_warning_errno(r, "Failed to save stat for %s, ignoring: %m", filename);
14801480

14811481
(void) fd_warn_permissions(filename, fileno(f));
14821482

0 commit comments

Comments
 (0)