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
a4327f2a
Unverified
Commit
a4327f2a
authored
May 04, 2020
by
Stéphane Graber
Committed by
GitHub
May 04, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3398 from brauner/2020-05-04/fixes
terminal: remove unneeded if condition
parents
466b8e7f
af25cae4
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 @
a4327f2a
...
@@ -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