1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-13 12:58:20 +03:00

udev-rules: pass the right error variable

(cherry picked from commit 75c64e58d18eb3726386cde4838546b6a2de525b)
(cherry picked from commit 5909e5cff7f2073580c42cd205c919bc33facffa)
(cherry picked from commit 22567a5ddb739a36e11fe273093726b49d04ebe8)
This commit is contained in:
David Tardon 2024-05-07 13:55:02 +02:00 committed by Luca Boccassi
parent 1d4690e9d3
commit 50c7086864

View File

@ -1193,7 +1193,7 @@ int udev_rules_parse_file(UdevRules *rules, const char *filename) {
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));