Skip to content

Commit 4685b28

Browse files
dtardonbluca
authored andcommitted
nspawn: pass the right error variable
(cherry picked from commit 192a452) (cherry picked from commit d8281b2) (cherry picked from commit 768169b) (cherry picked from commit 4ee6216)
1 parent 1d281a0 commit 4685b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nspawn/nspawn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,7 @@ static int setup_journal(const char *directory) {
26992699

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

27042704
return 0;
27052705
}

0 commit comments

Comments
 (0)