Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
5bd52b01
Unverified
Commit
5bd52b01
authored
Feb 17, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: fix error values
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3bb6756d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cgfsng.c
src/lxc/cgroups/cgfsng.c
+2
-2
No files found.
src/lxc/cgroups/cgfsng.c
View file @
5bd52b01
...
...
@@ -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
,
"/"
)
{
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment