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
af25cae4
Unverified
Commit
af25cae4
authored
May 04, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terminal: remove unneeded if condition
Fixes: Coverity 1461742. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
466b8e7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
terminal.c
src/lxc/terminal.c
+1
-4
No files found.
src/lxc/terminal.c
View file @
af25cae4
...
@@ -1167,10 +1167,7 @@ int lxc_terminal_map_ids(struct lxc_conf *c, struct lxc_terminal *terminal)
...
@@ -1167,10 +1167,7 @@ int lxc_terminal_map_ids(struct lxc_conf *c, struct lxc_terminal *terminal)
if
(
strcmp
(
terminal
->
name
,
""
)
==
0
)
if
(
strcmp
(
terminal
->
name
,
""
)
==
0
)
return
0
;
return
0
;
if
(
terminal
->
slave
>=
0
)
ret
=
userns_exec_mapped_root
(
terminal
->
name
,
terminal
->
slave
,
c
);
ret
=
userns_exec_mapped_root
(
terminal
->
name
,
terminal
->
slave
,
c
);
else
ret
=
userns_exec_mapped_root
(
terminal
->
name
,
terminal
->
slave
,
c
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
return
log_error
(
-
1
,
"Failed to chown terminal %d(%s)"
,
return
log_error
(
-
1
,
"Failed to chown terminal %d(%s)"
,
terminal
->
slave
,
terminal
->
name
);
terminal
->
slave
,
terminal
->
name
);
...
...
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