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
8a173162
Unverified
Commit
8a173162
authored
Feb 23, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: handle old clients for LXC_CMD_GET_CGROUP_CTX
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
490265b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
commands.c
src/lxc/commands.c
+2
-2
No files found.
src/lxc/commands.c
View file @
8a173162
...
@@ -198,8 +198,8 @@ static int lxc_cmd_rsp_recv(int sock, struct lxc_cmd_rr *cmd)
...
@@ -198,8 +198,8 @@ static int lxc_cmd_rsp_recv(int sock, struct lxc_cmd_rr *cmd)
rsp
->
data
=
INT_TO_PTR
(
move_fd
(
fds
->
fd
[
0
]));
rsp
->
data
=
INT_TO_PTR
(
move_fd
(
fds
->
fd
[
0
]));
return
log_debug
(
fret
?:
ret
,
"Finished processing
\"
%s
\"
"
,
reqstr
);
return
log_debug
(
fret
?:
ret
,
"Finished processing
\"
%s
\"
"
,
reqstr
);
case
LXC_CMD_GET_CGROUP_CTX
:
case
LXC_CMD_GET_CGROUP_CTX
:
if
(
rsp
->
datalen
>
sizeof
(
struct
cgroup_ctx
))
if
(
(
rsp
->
datalen
==
0
)
||
(
rsp
->
datalen
>
sizeof
(
struct
cgroup_ctx
)
))
return
syserrno_set
(
-
EINVAL
,
"Invalid response size from server for
\"
%s
\"
"
,
reqstr
);
return
syserrno_set
(
fret
?:
-
EINVAL
,
"Invalid response size from server for
\"
%s
\"
"
,
reqstr
);
/* Don't pointlessly allocate. */
/* Don't pointlessly allocate. */
rsp
->
data
=
(
void
*
)
cmd
->
req
.
data
;
rsp
->
data
=
(
void
*
)
cmd
->
req
.
data
;
...
...
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