Skip to content
Snippets Groups Projects
Commit 7e23bcd6 authored by David Bigagli's avatar David Bigagli
Browse files

Revert "Avoiding conditional directives that break statements"

This reverts commit 76098daf.
parent 0eec36d5
No related branches found
No related tags found
No related merge requests found
......@@ -218,11 +218,12 @@ int xcgroup_ns_mount(xcgroup_ns_t* cgns)
}
#if defined(__FreeBSD__)
#define mount_group mount("cgroup", cgns->mnt_point, MS_NOSUID|MS_NOEXEC|MS_NODEV, options)
if (mount("cgroup", cgns->mnt_point,
MS_NOSUID|MS_NOEXEC|MS_NODEV, options))
#else
#define mount_group mount("cgroup", cgns->mnt_point, "cgroup", MS_NOSUID|MS_NOEXEC|MS_NODEV, options)
if (mount("cgroup", cgns->mnt_point, "cgroup",
MS_NOSUID|MS_NOEXEC|MS_NODEV, options))
#endif
if (mount_group)
return XCGROUP_ERROR;
else {
/* FIXME: this only gets set when we aren't mounted at
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment