Commit ebb9ec72 by Tushar Gohad Committed by Daniel Lezcano

Minor resource name array fix in src/lxc/namespace.c

parent 743ecd2e
...@@ -97,7 +97,7 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags) ...@@ -97,7 +97,7 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags)
int lxc_attach(pid_t pid) int lxc_attach(pid_t pid)
{ {
char path[MAXPATHLEN]; char path[MAXPATHLEN];
char *ns[] = { "pid", "mnt", "net", "pid", "uts" }; char *ns[] = { "pid", "mnt", "net", "ipc", "uts" };
const int size = sizeof(ns) / sizeof(char *); const int size = sizeof(ns) / sizeof(char *);
int fd[size]; int fd[size];
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment