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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user