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
572f6a14
Unverified
Commit
572f6a14
authored
Dec 08, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: cleanup set_config_start()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
49aabd9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
confile.c
src/lxc/confile.c
+6
-4
No files found.
src/lxc/confile.c
View file @
572f6a14
...
...
@@ -1281,6 +1281,7 @@ static int set_config_pty_max(const char *key, const char *value,
static
int
set_config_start
(
const
char
*
key
,
const
char
*
value
,
struct
lxc_conf
*
lxc_conf
,
void
*
data
)
{
int
ret
;
bool
is_empty
;
is_empty
=
lxc_config_value_empty
(
value
);
...
...
@@ -1291,11 +1292,12 @@ static int set_config_start(const char *key, const char *value,
return
0
;
}
if
(
lxc_safe_uint
(
value
,
&
lxc_conf
->
start_auto
)
<
0
)
return
-
1
;
ret
=
lxc_safe_uint
(
value
,
&
lxc_conf
->
start_auto
);
if
(
ret
)
return
ret
;
if
(
lxc_conf
->
start_auto
>
1
)
return
-
1
;
return
ret_errno
(
EINVAL
)
;
return
0
;
}
else
if
(
*
(
key
+
10
)
==
'd'
)
{
/* lxc.start.delay */
...
...
@@ -1314,7 +1316,7 @@ static int set_config_start(const char *key, const char *value,
return
lxc_safe_int
(
value
,
&
lxc_conf
->
start_order
);
}
return
-
1
;
return
ret_errno
(
EINVAL
)
;
}
static
int
set_config_monitor
(
const
char
*
key
,
const
char
*
value
,
...
...
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