diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 322675222d0..23bb9591712 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1782,7 +1782,7 @@ static int setup_pts(const char *dest) { return log_oom(); /* Mount /dev/pts itself */ - p = prefix_root(dest, "/dev/pts"); + p = prefix_roota(dest, "/dev/pts"); if (mkdir(p, 0755) < 0) return log_error_errno(errno, "Failed to create /dev/pts: %m"); if (mount("devpts", p, "devpts", MS_NOSUID|MS_NOEXEC, options) < 0)