Skip to content

Commit 50c7086

Browse files
dtardonbluca
authored andcommitted
udev-rules: pass the right error variable
(cherry picked from commit 75c64e5) (cherry picked from commit 5909e5c) (cherry picked from commit 22567a5)
1 parent 1d4690e commit 50c7086

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

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

11981198
(void) fd_warn_permissions(filename, fileno(f));
11991199

0 commit comments

Comments
 (0)