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
92b17705
Unverified
Commit
92b17705
authored
Dec 19, 2017
by
Christian Brauner
Committed by
GitHub
Dec 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2050 from tanyifeng/small_fix
conf.c: small fix for args of mount_entry
parents
53056753
d6bec4ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
conf.c
src/lxc/conf.c
+2
-2
parse_config_file.c
src/tests/parse_config_file.c
+2
-2
No files found.
src/lxc/conf.c
View file @
92b17705
...
@@ -1813,8 +1813,8 @@ static char *get_field(char *src, int nfields)
...
@@ -1813,8 +1813,8 @@ static char *get_field(char *src, int nfields)
static
int
mount_entry
(
const
char
*
fsname
,
const
char
*
target
,
static
int
mount_entry
(
const
char
*
fsname
,
const
char
*
target
,
const
char
*
fstype
,
unsigned
long
mountflags
,
const
char
*
fstype
,
unsigned
long
mountflags
,
const
char
*
data
,
int
optional
,
int
dev
,
const
char
*
data
,
bool
optional
,
bool
dev
,
int
relative
,
const
char
*
rootfs
)
bool
relative
,
const
char
*
rootfs
)
{
{
int
ret
;
int
ret
;
char
srcbuf
[
MAXPATHLEN
];
char
srcbuf
[
MAXPATHLEN
];
...
...
src/tests/parse_config_file.c
View file @
92b17705
...
@@ -478,7 +478,7 @@ int main(int argc, char *argv[])
...
@@ -478,7 +478,7 @@ int main(int argc, char *argv[])
}
}
if
(
!
c
->
get_config_item
(
c
,
"lxc.id_map"
,
retval
,
sizeof
(
retval
)))
{
if
(
!
c
->
get_config_item
(
c
,
"lxc.id_map"
,
retval
,
sizeof
(
retval
)))
{
lxc_error
(
"%s
\n
"
,
"failed to get config item
\"
lxc.
cgrou
p
\"
"
);
lxc_error
(
"%s
\n
"
,
"failed to get config item
\"
lxc.
id_ma
p
\"
"
);
return
-
1
;
return
-
1
;
}
}
...
@@ -506,7 +506,7 @@ int main(int argc, char *argv[])
...
@@ -506,7 +506,7 @@ int main(int argc, char *argv[])
}
}
if
(
!
c
->
get_config_item
(
c
,
"lxc.idmap"
,
retval
,
sizeof
(
retval
)))
{
if
(
!
c
->
get_config_item
(
c
,
"lxc.idmap"
,
retval
,
sizeof
(
retval
)))
{
lxc_error
(
"%s
\n
"
,
"failed to get config item
\"
lxc.
cgrou
p
\"
"
);
lxc_error
(
"%s
\n
"
,
"failed to get config item
\"
lxc.
idma
p
\"
"
);
return
-
1
;
return
-
1
;
}
}
...
...
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