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
f57860ac
Unverified
Commit
f57860ac
authored
Feb 09, 2019
by
Christian Brauner
Committed by
GitHub
Feb 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2833 from brauner/2019-02-09/bugfixes
bugfixes
parents
884b37d0
6425271d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-1
lxc_init.c
src/lxc/cmd/lxc_init.c
+1
-0
commands.c
src/lxc/commands.c
+1
-1
start.c
src/lxc/start.c
+4
-4
No files found.
src/lxc/cgroups/cgfsng.c
View file @
f57860ac
...
@@ -2193,7 +2193,7 @@ static int convert_devpath(const char *invalue, char *dest)
...
@@ -2193,7 +2193,7 @@ static int convert_devpath(const char *invalue, char *dest)
* A ' # comment' would be legal. Technically other text is not
* A ' # comment' would be legal. Technically other text is not
* legal, we could check for that if we cared to.
* legal, we could check for that if we cared to.
*/
*/
for
(
n_parts
=
1
,
p
=
path
;
*
p
&&
n_parts
<
3
;
p
++
)
{
for
(
n_parts
=
1
,
p
=
path
;
*
p
;
p
++
)
{
if
(
*
p
!=
' '
)
if
(
*
p
!=
' '
)
continue
;
continue
;
*
p
=
'\0'
;
*
p
=
'\0'
;
...
...
src/lxc/cmd/lxc_init.c
View file @
f57860ac
...
@@ -432,6 +432,7 @@ int main(int argc, char *argv[])
...
@@ -432,6 +432,7 @@ int main(int argc, char *argv[])
if
(
my_args
.
quiet
)
if
(
my_args
.
quiet
)
fprintf
(
stderr
,
"Failed to wait on child %d
\n
"
,
pid
);
fprintf
(
stderr
,
"Failed to wait on child %d
\n
"
,
pid
);
ret
=
-
1
;
goto
out
;
goto
out
;
}
}
...
...
src/lxc/commands.c
View file @
f57860ac
...
@@ -317,7 +317,7 @@ static int lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, int *stopped,
...
@@ -317,7 +317,7 @@ static int lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, int *stopped,
return
ret
;
return
ret
;
}
}
if
(
stay_connected
&&
ret
>
0
)
if
(
stay_connected
)
cmd
->
rsp
.
ret
=
client_fd
;
cmd
->
rsp
.
ret
=
client_fd
;
return
ret
;
return
ret
;
...
...
src/lxc/start.c
View file @
f57860ac
...
@@ -1507,11 +1507,11 @@ int resolve_clone_flags(struct lxc_handler *handler)
...
@@ -1507,11 +1507,11 @@ int resolve_clone_flags(struct lxc_handler *handler)
struct
lxc_conf
*
conf
=
handler
->
conf
;
struct
lxc_conf
*
conf
=
handler
->
conf
;
for
(
i
=
0
;
i
<
LXC_NS_MAX
;
i
++
)
{
for
(
i
=
0
;
i
<
LXC_NS_MAX
;
i
++
)
{
if
(
conf
->
ns_keep
>
0
)
{
if
(
conf
->
ns_keep
)
{
if
(
(
conf
->
ns_keep
&
ns_info
[
i
].
clone_flag
)
==
0
)
if
(
!
(
conf
->
ns_keep
&
ns_info
[
i
].
clone_flag
)
)
handler
->
ns_clone_flags
|=
ns_info
[
i
].
clone_flag
;
handler
->
ns_clone_flags
|=
ns_info
[
i
].
clone_flag
;
}
else
if
(
conf
->
ns_clone
>
0
)
{
}
else
if
(
conf
->
ns_clone
)
{
if
((
conf
->
ns_clone
&
ns_info
[
i
].
clone_flag
)
>
0
)
if
((
conf
->
ns_clone
&
ns_info
[
i
].
clone_flag
))
handler
->
ns_clone_flags
|=
ns_info
[
i
].
clone_flag
;
handler
->
ns_clone_flags
|=
ns_info
[
i
].
clone_flag
;
}
else
{
}
else
{
if
(
i
==
LXC_NS_USER
&&
lxc_list_empty
(
&
handler
->
conf
->
id_map
))
if
(
i
==
LXC_NS_USER
&&
lxc_list_empty
(
&
handler
->
conf
->
id_map
))
...
...
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