]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Replace configuration check by flag check
authordlezcano <dlezcano>
Mon, 8 Sep 2008 14:24:39 +0000 (14:24 +0000)
committerdlezcano <dlezcano>
Mon, 8 Sep 2008 14:24:39 +0000 (14:24 +0000)
src/lxc/execute.c

index 023ae2320537d5b6195e8256d3dcaa7351844d0f..c05ec3600f3abdf353de6b21139be27cb54ad899 100644 (file)
@@ -118,7 +118,7 @@ int lxc_execute(const char *name, int argc, char *argv[],
                                goto error;
                        }
 
-                       if (conf_has_network(name))
+                       if (clone_flags & CLONE_NEWNET)
                                if (mount("sysfs", "/sys", "sysfs", 0, NULL)) {
                                        lxc_log_syserror("failed to mount '/sys'");
                                        /* continue: non fatal error until sysfs not per