confile: use set_config_path_item() for most cgroup layout modifiers

parent 7e925736
...@@ -1825,7 +1825,7 @@ static int set_config_cgroup_dir(const char *key, const char *value, ...@@ -1825,7 +1825,7 @@ static int set_config_cgroup_dir(const char *key, const char *value,
if (lxc_config_value_empty(value)) if (lxc_config_value_empty(value))
return clr_config_cgroup_dir(key, lxc_conf, NULL); return clr_config_cgroup_dir(key, lxc_conf, NULL);
return set_config_string_item(&lxc_conf->cgroup_meta.dir, value); return set_config_path_item(&lxc_conf->cgroup_meta.dir, value);
} }
static int set_config_cgroup_monitor_dir(const char *key, const char *value, static int set_config_cgroup_monitor_dir(const char *key, const char *value,
...@@ -1834,8 +1834,7 @@ static int set_config_cgroup_monitor_dir(const char *key, const char *value, ...@@ -1834,8 +1834,7 @@ static int set_config_cgroup_monitor_dir(const char *key, const char *value,
if (lxc_config_value_empty(value)) if (lxc_config_value_empty(value))
return clr_config_cgroup_monitor_dir(key, lxc_conf, NULL); return clr_config_cgroup_monitor_dir(key, lxc_conf, NULL);
return set_config_string_item(&lxc_conf->cgroup_meta.monitor_dir, return set_config_path_item(&lxc_conf->cgroup_meta.monitor_dir, value);
value);
} }
static int set_config_cgroup_monitor_pivot_dir(const char *key, const char *value, static int set_config_cgroup_monitor_pivot_dir(const char *key, const char *value,
...@@ -1844,8 +1843,7 @@ static int set_config_cgroup_monitor_pivot_dir(const char *key, const char *valu ...@@ -1844,8 +1843,7 @@ static int set_config_cgroup_monitor_pivot_dir(const char *key, const char *valu
if (lxc_config_value_empty(value)) if (lxc_config_value_empty(value))
return clr_config_cgroup_monitor_pivot_dir(key, lxc_conf, NULL); return clr_config_cgroup_monitor_pivot_dir(key, lxc_conf, NULL);
return set_config_string_item(&lxc_conf->cgroup_meta.monitor_pivot_dir, return set_config_path_item(&lxc_conf->cgroup_meta.monitor_pivot_dir, value);
value);
} }
static int set_config_cgroup_container_dir(const char *key, const char *value, static int set_config_cgroup_container_dir(const char *key, const char *value,
...@@ -1855,8 +1853,7 @@ static int set_config_cgroup_container_dir(const char *key, const char *value, ...@@ -1855,8 +1853,7 @@ static int set_config_cgroup_container_dir(const char *key, const char *value,
if (lxc_config_value_empty(value)) if (lxc_config_value_empty(value))
return clr_config_cgroup_container_dir(key, lxc_conf, NULL); return clr_config_cgroup_container_dir(key, lxc_conf, NULL);
return set_config_string_item(&lxc_conf->cgroup_meta.container_dir, return set_config_path_item(&lxc_conf->cgroup_meta.container_dir, value);
value);
} }
static int set_config_cgroup_container_inner_dir(const char *key, static int set_config_cgroup_container_inner_dir(const char *key,
......
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