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
b5769f70
Unverified
Commit
b5769f70
authored
Oct 10, 2018
by
Christian Brauner
Committed by
GitHub
Oct 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2686 from 2xsec/rpm
fix rpm packaging error for static library
parents
d523cf59
3b159041
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
lxc.spec.in
lxc.spec.in
+6
-0
confile.c
src/lxc/confile.c
+0
-1
parse.c
src/lxc/parse.c
+3
-2
No files found.
lxc.spec.in
View file @
b5769f70
...
...
@@ -152,6 +152,11 @@ fi
%post
# This test should trigger a network configure on a new install.
if [ ! -d @LXC_DISTRO_SYSCONF@ ]
then
mkdir -p @LXC_DISTRO_SYSCONF@
fi
if [ ! -f @LXC_DISTRO_SYSCONF@/lxc-net ] || ! grep -q 'USE_LXC_BRIDGE=' @LXC_DISTRO_SYSCONF@/lxc-net
then
# Grab a random 10net subnet. Need to add test logic...
...
...
@@ -251,6 +256,7 @@ fi
%defattr(-,root,root)
%{_sbindir}/*
%{_libdir}/*.so.*
%{_libdir}/*.a
%{_libdir}/%{name}
%{_localstatedir}/*
%{_libexecdir}/%{name}/hooks/unmount-namespace
...
...
src/lxc/confile.c
View file @
b5769f70
...
...
@@ -2493,7 +2493,6 @@ on_error:
int
lxc_config_read
(
const
char
*
file
,
struct
lxc_conf
*
conf
,
bool
from_include
)
{
int
ret
;
struct
parse_line_conf
c
;
c
.
conf
=
conf
;
...
...
src/lxc/parse.c
View file @
b5769f70
...
...
@@ -81,12 +81,12 @@ int lxc_file_for_each_line_mmap(const char *file, lxc_file_cb callback, void *da
ret
=
fstat
(
fd
,
&
st
);
if
(
ret
<
0
)
{
SYSERROR
(
"Failed to stat config file
\"
%s
\"
"
,
file
);
goto
on_error
;
goto
on_error
_fstat
;
}
ret
=
0
;
if
(
st
.
st_size
==
0
)
goto
on_error
;
goto
on_error
_fstat
;
ret
=
-
1
;
buf
=
lxc_strmmap
(
NULL
,
st
.
st_size
,
PROT_READ
|
PROT_WRITE
,
...
...
@@ -117,6 +117,7 @@ on_error:
ret
=
-
1
;
}
on_error_fstat:
saved_errno
=
errno
;
close
(
fd
);
errno
=
saved_errno
;
...
...
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