static const char virtualization_consoles[] =
"hvc0\0"
"xvc0\0"
- "hvsi0\0";
+ "hvsi0\0"
+ "sclp_line0\0"
+ "ttysclp0\0";
_cleanup_free_ char *active = NULL;
const char *j;
* the variable name we only support ptys here. */
r = getenv_for_pid(1, "container_ttys", &container_ttys);
- if (r >= 0) {
+ if (r > 0) {
char *w, *state;
size_t l;
t = tty;
/* Then, make sure it's actually a pty */
- t = path_startswith(tty, "pts/");
+ t = path_startswith(t, "pts/");
if (!t)
continue;