mirror of https://gitee.com/openkylin/libvirt.git
LXC: s/chroot/chdir in lxcContainerPivotRoot()
...fixes a trivial copy&paste error. Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
7710d236b2
commit
1133404c73
|
@ -629,11 +629,11 @@ static int lxcContainerPivotRoot(virDomainFSDefPtr root)
|
|||
}
|
||||
}
|
||||
|
||||
/* Now we chroot into the tmpfs, then pivot into the
|
||||
/* Now we chdir into the tmpfs, then pivot into the
|
||||
* root->src bind-mounted onto '/new' */
|
||||
if (chdir(newroot) < 0) {
|
||||
virReportSystemError(errno,
|
||||
_("Failed to chroot into %s"), newroot);
|
||||
_("Failed to chdir into %s"), newroot);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue