2
0
mirror of git://github.com/lxc/lxc synced 2025-08-30 23:49:35 +00:00

terminal: fail on unknown error during TIOCGPTPEER

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2021-07-31 10:19:57 +02:00
parent 23cc33cd90
commit 64ac925fb1

View File

@@ -944,9 +944,10 @@ int lxc_devpts_terminal(int devpts_fd, int *ret_ptx, int *ret_pty,
break;
default:
SYSWARN("Failed to allocate new pty device");
break;
return -errno;
}
/* The caller tells us that they trust the devpts instance. */
if (require_tiocgptpeer)
return ret_errno(ENODEV);
}