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)
  • Loading branch information
dtardon authored and keszybz committed May 8, 2024
1 parent a2e7aac commit 5909e5c
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 @@ -1538,7 +1538,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 5909e5c

Please sign in to comment.