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
7568a48f
Unverified
Commit
7568a48f
authored
Jun 08, 2018
by
Christian Brauner
Committed by
GitHub
Jun 08, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2383 from 2xsec/coverity
coverity: #1425849, #1425821, #1425794, #1425779, #1425777, #1425795, #1425841
parents
7b2352c7
dcea4a23
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
20 deletions
+0
-20
commands_utils.c
src/lxc/commands_utils.c
+0
-3
confile.c
src/lxc/confile.c
+0
-2
lxccontainer.c
src/lxc/lxccontainer.c
+0
-9
utils.c
src/lxc/utils.c
+0
-6
No files found.
src/lxc/commands_utils.c
View file @
7568a48f
...
...
@@ -73,9 +73,6 @@ again:
return
-
1
;
}
if
(
ret
<
0
)
return
-
1
;
TRACE
(
"Received state %s from state client %d"
,
lxc_state2str
(
msg
.
value
),
state_client_fd
);
...
...
src/lxc/confile.c
View file @
7568a48f
...
...
@@ -2076,8 +2076,6 @@ static int do_includedir(const char *dirp, struct lxc_conf *lxc_conf)
while
((
direntp
=
readdir
(
dir
)))
{
const
char
*
fnam
;
if
(
!
direntp
)
break
;
fnam
=
direntp
->
d_name
;
if
(
!
strcmp
(
fnam
,
"."
))
...
...
src/lxc/lxccontainer.c
View file @
7568a48f
...
...
@@ -2777,9 +2777,6 @@ static bool has_snapshots(struct lxc_container *c)
if
(
!
dir
)
return
false
;
while
((
direntp
=
readdir
(
dir
)))
{
if
(
!
direntp
)
break
;
if
(
!
strcmp
(
direntp
->
d_name
,
"."
))
continue
;
...
...
@@ -4119,9 +4116,6 @@ static int do_lxcapi_snapshot_list(struct lxc_container *c, struct lxc_snapshot
}
while
((
direntp
=
readdir
(
dir
)))
{
if
(
!
direntp
)
break
;
if
(
!
strcmp
(
direntp
->
d_name
,
"."
))
continue
;
...
...
@@ -4907,9 +4901,6 @@ int list_defined_containers(const char *lxcpath, char ***names, struct lxc_conta
*
names
=
NULL
;
while
((
direntp
=
readdir
(
dir
)))
{
if
(
!
direntp
)
break
;
/* Ignore '.', '..' and any hidden directory. */
if
(
!
strncmp
(
direntp
->
d_name
,
"."
,
1
))
continue
;
...
...
src/lxc/utils.c
View file @
7568a48f
...
...
@@ -85,9 +85,6 @@ static int _recursive_rmdir(const char *dirname, dev_t pdev,
struct
stat
mystat
;
int
rc
;
if
(
!
direntp
)
break
;
if
(
!
strcmp
(
direntp
->
d_name
,
"."
)
||
!
strcmp
(
direntp
->
d_name
,
".."
))
continue
;
...
...
@@ -2091,9 +2088,6 @@ static int lxc_get_unused_loop_dev_legacy(char *loop_name)
return
-
1
;
while
((
dp
=
readdir
(
dir
)))
{
if
(
!
dp
)
break
;
if
(
strncmp
(
dp
->
d_name
,
"loop"
,
4
)
!=
0
)
continue
;
...
...
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