Skip to content

Commit

Permalink
Merge pull request #3398 from brauner/2020-05-04/fixes
Browse files Browse the repository at this point in the history
terminal: remove unneeded if condition
  • Loading branch information
stgraber committed May 4, 2020
2 parents 466b8e7 + af25cae commit a4327f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lxc/terminal.c
Expand Up @@ -1167,10 +1167,7 @@ int lxc_terminal_map_ids(struct lxc_conf *c, struct lxc_terminal *terminal)
if (strcmp(terminal->name, "") == 0)
return 0;

if (terminal->slave >= 0)
ret = userns_exec_mapped_root(terminal->name, terminal->slave, c);
else
ret = userns_exec_mapped_root(terminal->name, terminal->slave, c);
ret = userns_exec_mapped_root(terminal->name, terminal->slave, c);
if (ret < 0) {
return log_error(-1, "Failed to chown terminal %d(%s)",
terminal->slave, terminal->name);
Expand Down

0 comments on commit a4327f2

Please sign in to comment.