nspawn: pass the right error variable

This commit is contained in:
David Tardon
2024-05-07 14:02:08 +02:00
parent 3613a1d49f
commit 192a452d1c
+1 -1
View 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;
}