Fix some compiler warnings emitted by gcc-4.8.0
[oweals/busybox.git] / util-linux / switch_root.c
index db6ae3542e95f4b9a744643ae036c1dbddbd918f..a301b365b8955bce3f518e051f098fcaed6ab4b6 100644 (file)
@@ -114,7 +114,7 @@ int switch_root_main(int argc UNUSED_PARAM, char **argv)
        }
        xchroot(".");
        // The chdir is needed to recalculate "." and ".." links
-       xchdir("/");
+       /*xchdir("/"); - done in xchroot */
 
        // If a new console specified, redirect stdin/stdout/stderr to it
        if (console) {