confile: coding style fixes for set_config_cgroup_container_inner_dir()

parent 51b07b70
...@@ -1754,19 +1754,14 @@ static int set_config_cgroup_container_inner_dir(const char *key, ...@@ -1754,19 +1754,14 @@ static int set_config_cgroup_container_inner_dir(const char *key,
void *data) void *data)
{ {
if (lxc_config_value_empty(value)) if (lxc_config_value_empty(value))
return clr_config_cgroup_container_inner_dir(key, lxc_conf, return clr_config_cgroup_container_inner_dir(key, lxc_conf, NULL);
NULL);
if (strchr(value, '/') || if (strchr(value, '/') ||
strcmp(value, ".") == 0 || strcmp(value, ".") == 0 ||
strcmp(value, "..") == 0) strcmp(value, "..") == 0)
{ return log_error_errno(-EINVAL, EINVAL, "lxc.cgroup.dir.container.inner must be a single directory name");
ERROR("lxc.cgroup.dir.container.inner must be a single directory name");
return -1;
}
return set_config_string_item(&lxc_conf->cgroup_meta.namespace_dir, return set_config_string_item(&lxc_conf->cgroup_meta.namespace_dir, value);
value);
} }
static int set_config_cgroup_relative(const char *key, const char *value, static int set_config_cgroup_relative(const char *key, const char *value,
......
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