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
4fe9a9b7
Unverified
Commit
4fe9a9b7
authored
Dec 05, 2017
by
Christian Brauner
Committed by
GitHub
Dec 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2000 from hallyn/2017-12-04/execargs
lxc_execute: properly figure out number of needed arguments
parents
68eeee2f
858faf70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
execute.c
src/lxc/execute.c
+6
-6
No files found.
src/lxc/execute.c
View file @
4fe9a9b7
...
...
@@ -49,14 +49,14 @@ static int execute_start(struct lxc_handler *handler, void* data)
while
(
my_args
->
argv
[
argc
++
]);
argc_add
=
4
;
/* lxc-init -n name -- [argc] NULL -> 5 */
argc_add
=
5
;
if
(
my_args
->
quiet
)
argc_add
++
;
if
(
!
handler
->
conf
->
rootfs
.
path
)
{
argc_add
+=
4
;
if
(
lxc_log_has_valid_level
())
argc_add
+=
2
;
}
if
(
!
handler
->
conf
->
rootfs
.
path
)
argc_add
+=
2
;
if
(
lxc_log_has_valid_level
())
argc_add
+=
2
;
argv
=
malloc
((
argc
+
argc_add
)
*
sizeof
(
*
argv
));
if
(
!
argv
)
...
...
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