]> xenbits.xensource.com Git - libvirt.git/commitdiff
LXC: s/chroot/chdir in lxcContainerPivotRoot()
authorRichard Weinberger <richard@nod.at>
Fri, 14 Jun 2013 06:57:55 +0000 (08:57 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Jun 2013 09:24:41 +0000 (11:24 +0200)
...fixes a trivial copy&paste error.

Signed-off-by: Richard Weinberger <richard@nod.at>
src/lxc/lxc_container.c

index 181f6c827e7b1c78751d1540bb455d15fc562d5d..f288c533a001b81789f7f0c4434632fdae3c17ab 100644 (file)
@@ -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;
     }