Skip to content

Commit

Permalink
udev-rules: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 75c64e5)
(cherry picked from commit 5909e5c)
  • Loading branch information
dtardon authored and bluca committed May 9, 2024
1 parent 5de929e commit 22567a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udev/udev-rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ int udev_rules_parse_file(UdevRules *rules, const char *filename, bool extra_che

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

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

Expand Down

0 comments on commit 22567a5

Please sign in to comment.