Skip to content

Commit

Permalink
nspawn: pass the right error variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dtardon committed May 7, 2024
1 parent 3613a1d commit 192a452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nspawn/nspawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,7 @@ static int setup_journal(const char *directory) {

r = mount_nofollow_verbose(LOG_DEBUG, p, q, NULL, MS_BIND, NULL);
if (r < 0)
return log_error_errno(errno, "Failed to bind mount journal from host into guest: %m");
return log_error_errno(r, "Failed to bind mount journal from host into guest: %m");

return 0;
}
Expand Down

0 comments on commit 192a452

Please sign in to comment.