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
337fa8ea
Unverified
Commit
337fa8ea
authored
Jul 11, 2018
by
Christian Brauner
Committed by
GitHub
Jul 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2458 from 2xsec/bugfix
tools: lxc-ls: fix signed_to_bigger_unsigned issue
parents
f2c0c2bf
3a3dcd34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lxc_ls.c
src/lxc/tools/lxc_ls.c
+6
-6
No files found.
src/lxc/tools/lxc_ls.c
View file @
337fa8ea
...
...
@@ -308,7 +308,7 @@ static char *ls_get_config_item(struct lxc_container *c, const char *item,
if
(
running
)
return
c
->
get_running_config_item
(
c
,
item
);
size_
t
len
=
c
->
get_config_item
(
c
,
item
,
NULL
,
0
);
in
t
len
=
c
->
get_config_item
(
c
,
item
,
NULL
,
0
);
if
(
len
<=
0
)
return
NULL
;
...
...
@@ -316,7 +316,7 @@ static char *ls_get_config_item(struct lxc_container *c, const char *item,
if
(
!
val
)
return
NULL
;
if
(
(
size_t
)
c
->
get_config_item
(
c
,
item
,
val
,
len
+
1
)
!=
len
)
{
if
(
c
->
get_config_item
(
c
,
item
,
val
,
len
+
1
)
!=
len
)
{
free
(
val
);
val
=
NULL
;
}
...
...
@@ -612,7 +612,7 @@ out:
static
char
*
ls_get_cgroup_item
(
struct
lxc_container
*
c
,
const
char
*
item
)
{
size_
t
len
=
c
->
get_cgroup_item
(
c
,
item
,
NULL
,
0
);
in
t
len
=
c
->
get_cgroup_item
(
c
,
item
,
NULL
,
0
);
if
(
len
<=
0
)
return
NULL
;
...
...
@@ -620,7 +620,7 @@ static char *ls_get_cgroup_item(struct lxc_container *c, const char *item)
if
(
!
val
)
return
NULL
;
if
(
(
size_t
)
c
->
get_cgroup_item
(
c
,
item
,
val
,
len
+
1
)
!=
len
)
{
if
(
c
->
get_cgroup_item
(
c
,
item
,
val
,
len
+
1
)
!=
len
)
{
free
(
val
);
val
=
NULL
;
}
...
...
@@ -630,7 +630,7 @@ static char *ls_get_cgroup_item(struct lxc_container *c, const char *item)
static
char
*
ls_get_groups
(
struct
lxc_container
*
c
,
bool
running
)
{
size_
t
len
=
0
;
in
t
len
=
0
;
char
*
val
=
NULL
;
if
(
running
)
...
...
@@ -640,7 +640,7 @@ static char *ls_get_groups(struct lxc_container *c, bool running)
if
(
!
val
&&
(
len
>
0
))
{
val
=
malloc
((
len
+
1
)
*
sizeof
(
*
val
));
if
(
(
size_t
)
c
->
get_config_item
(
c
,
"lxc.group"
,
val
,
len
+
1
)
!=
len
)
{
if
(
c
->
get_config_item
(
c
,
"lxc.group"
,
val
,
len
+
1
)
!=
len
)
{
free
(
val
);
return
NULL
;
}
...
...
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