mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 07:47:05 +00:00
Merge pull request #3398 from brauner/2020-05-04/fixes
terminal: remove unneeded if condition
This commit is contained in:
commit
a4327f2aa1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user