From: David Tardon Date: Tue, 7 May 2024 11:40:53 +0000 (+0200) Subject: nspawn: pass the right error variable X-Git-Tag: v256-rc2~83^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=192a452d1ca04cd32153d104e9e3b3c3a6957106;p=thirdparty%2Fsystemd.git nspawn: pass the right error variable --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 029a7f9d88a..5842d3ba8fa 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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; }