cgroups: fix error values

parent 3bb6756d
......@@ -1050,11 +1050,11 @@ static int __cgroup_tree_create(int dfd_base, const char *path, mode_t mode,
char buf[PATH_MAX];
if (is_empty_string(path))
return ret_errno(-EINVAL);
return ret_errno(EINVAL);
len = strlcpy(buf, path, sizeof(buf));
if (len >= sizeof(buf))
return -E2BIG;
return ret_errno(E2BIG);
lxc_iterate_parts(cur, buf, "/") {
/*
......
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