]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: pass the right error variable
authorDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:40:53 +0000 (13:40 +0200)
committerDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 12:02:08 +0000 (14:02 +0200)
src/nspawn/nspawn.c

index 029a7f9d88a3b667e439a8cb2091c498912392e2..5842d3ba8fa0afe1e7e6390dcd613ad5e8f24a22 100644 (file)
@@ -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;
 }