mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
udev-rules: pass the right error variable
This commit is contained in:
@@ -1536,7 +1536,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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user