From d8281b2ab916694dd670a88d16cc50a2d8909a19 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Tue, 7 May 2024 13:40:53 +0200
Subject: [PATCH 0598/1160] nspawn: pass the right error variable
(cherry picked from commit 192a452d1ca04cd32153d104e9e3b3c3a6957106)
src/nspawn/nspawn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -2620,7 +2620,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;
}
--
2.33.0