mirror of
git://github.com/lxc/lxc
synced 2025-08-31 23:54:41 +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;
|
break;
|
||||||
default:
|
default:
|
||||||
SYSWARN("Failed to allocate new pty device");
|
SYSWARN("Failed to allocate new pty device");
|
||||||
break;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The caller tells us that they trust the devpts instance. */
|
||||||
if (require_tiocgptpeer)
|
if (require_tiocgptpeer)
|
||||||
return ret_errno(ENODEV);
|
return ret_errno(ENODEV);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user