cgroups: return ENOCGROUP2 from cgroup_attach()

parent 6407e1c2
......@@ -3470,7 +3470,7 @@ int cgroup_attach(const struct lxc_conf *conf, const char *name,
unified_fd = lxc_cmd_get_cgroup2_fd(name, lxcpath);
if (unified_fd < 0)
return ret_errno(EBADF);
return ret_errno(ENOCGROUP2);
if (!lxc_list_empty(&conf->id_map)) {
struct userns_exec_unified_attach_data args = {
......
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