diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 51732080e8..581bbaf345 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -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));