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
428ad142
Unverified
Commit
428ad142
authored
Feb 24, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxccontainer: do_lxcapi_is_defined()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
045552aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lxccontainer.c
src/lxc/lxccontainer.c
+8
-4
No files found.
src/lxc/lxccontainer.c
View file @
428ad142
...
...
@@ -353,24 +353,28 @@ int lxc_container_put(struct lxc_container *c)
static
bool
do_lxcapi_is_defined
(
struct
lxc_container
*
c
)
{
int
statret
;
struct
stat
statbuf
;
bool
ret
=
false
;
int
statret
;
if
(
!
c
)
return
false
;
if
(
container_mem_lock
(
c
))
return
false
;
if
(
!
c
->
configfile
)
goto
out
;
goto
on_error
;
statret
=
stat
(
c
->
configfile
,
&
statbuf
);
if
(
statret
!=
0
)
goto
out
;
goto
on_error
;
ret
=
true
;
o
ut
:
o
n_error
:
container_mem_unlock
(
c
);
return
ret
;
}
...
...
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