Commit 3847ae4b by dlezcano

Unlink nsgroup before creating a new link

parent 8642237a
......@@ -80,6 +80,7 @@ int lxc_link_nsgroup(const char *name, pid_t pid)
asprintf(&lxc, LXCPATH "/%s/nsgroup", name);
asprintf(&nsgroup, "%s/%d", cgroup, pid);
unlink(lxc);
ret = symlink(nsgroup, lxc);
if (ret)
lxc_log_syserror("failed to create symlink %s->%s",
......
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