]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-rules: pass the right error variable
authorDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:55:02 +0000 (13:55 +0200)
committerDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 12:02:08 +0000 (14:02 +0200)
src/udev/udev-rules.c

index 51732080e85ba8429653c6db8d82f3dd22f097a4..581bbaf345904cd6ae8da44b4bc8ac6a2a77a9b1 100644 (file)
@@ -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));