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
4d3d037a
Unverified
Commit
4d3d037a
authored
Feb 15, 2019
by
Stéphane Graber
Committed by
GitHub
Feb 15, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2857 from brauner/2019-02-15/tweak_log
log: fixes
parents
2cd64122
24548539
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
conf.c
src/lxc/conf.c
+1
-5
network.c
src/lxc/network.c
+2
-4
No files found.
src/lxc/conf.c
View file @
4d3d037a
...
@@ -1639,11 +1639,7 @@ static int lxc_setup_devpts(struct lxc_conf *conf)
...
@@ -1639,11 +1639,7 @@ static int lxc_setup_devpts(struct lxc_conf *conf)
if
(
ret
<
0
||
(
size_t
)
ret
>=
sizeof
(
devpts_mntopts
))
if
(
ret
<
0
||
(
size_t
)
ret
>=
sizeof
(
devpts_mntopts
))
return
-
1
;
return
-
1
;
ret
=
umount2
(
"/dev/pts"
,
MNT_DETACH
);
(
void
)
umount2
(
"/dev/pts"
,
MNT_DETACH
);
if
(
ret
<
0
)
SYSWARN
(
"Failed to unmount old devpts instance"
);
else
DEBUG
(
"Unmounted old devpts instance"
);
/* Create mountpoint for devpts instance. */
/* Create mountpoint for devpts instance. */
ret
=
mkdir
(
"/dev/pts"
,
0755
);
ret
=
mkdir
(
"/dev/pts"
,
0755
);
...
...
src/lxc/network.c
View file @
4d3d037a
...
@@ -2581,8 +2581,7 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
...
@@ -2581,8 +2581,7 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
netdev
->
name
[
0
]
!=
'\0'
?
netdev
->
name
:
"(null)"
,
netdev
->
name
[
0
]
!=
'\0'
?
netdev
->
name
:
"(null)"
,
netdev
->
ifindex
);
netdev
->
ifindex
);
}
else
if
(
ret
<
0
)
{
}
else
if
(
ret
<
0
)
{
errno
=
-
ret
;
WARN
(
"Failed to remove interface
\"
%s
\"
with index %d"
,
SYSWARN
(
"Failed to remove interface
\"
%s
\"
with index %d"
,
netdev
->
name
[
0
]
!=
'\0'
?
netdev
->
name
:
"(null)"
,
netdev
->
name
[
0
]
!=
'\0'
?
netdev
->
name
:
"(null)"
,
netdev
->
ifindex
);
netdev
->
ifindex
);
goto
clear_ifindices
;
goto
clear_ifindices
;
...
@@ -2606,8 +2605,7 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
...
@@ -2606,8 +2605,7 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
ret
=
lxc_netdev_delete_by_name
(
hostveth
);
ret
=
lxc_netdev_delete_by_name
(
hostveth
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
errno
=
-
ret
;
WARN
(
"Failed to remove interface
\"
%s
\"
from
\"
%s
\"
"
,
SYSWARN
(
"Failed to remove interface
\"
%s
\"
from
\"
%s
\"
"
,
hostveth
,
netdev
->
link
);
hostveth
,
netdev
->
link
);
goto
clear_ifindices
;
goto
clear_ifindices
;
}
}
...
...
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