Skip to content

Commit 5909e5c

Browse files
dtardonkeszybz
authored andcommitted
udev-rules: pass the right error variable
(cherry picked from commit 75c64e5)
1 parent a2e7aac commit 5909e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/udev/udev-rules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ int udev_rules_parse_file(UdevRules *rules, const char *filename, bool extra_che
15381538

15391539
r = hashmap_put_stats_by_path(&rules->stats_by_path, filename, &st);
15401540
if (r < 0)
1541-
return log_warning_errno(errno, "Failed to save stat for %s, ignoring: %m", filename);
1541+
return log_warning_errno(r, "Failed to save stat for %s, ignoring: %m", filename);
15421542

15431543
(void) fd_warn_permissions(filename, fileno(f));
15441544

0 commit comments

Comments
 (0)