uterm: vt: fix checking for /dev/tty0 instead of /dev/tty
/dev/tty may be available even though CONFIG_VT is not set. Therefore, check for /dev/tty0 instead which is guaranteed to be not available with CONFIG_VT=n. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
2841558f7c
commit
9bce87d564
@ -385,7 +385,7 @@ static void fake_leave(struct uterm_vt *vt, struct signalfd_siginfo *info)
|
||||
|
||||
static bool check_vt_support(void)
|
||||
{
|
||||
if (!access("/dev/tty", F_OK))
|
||||
if (!access("/dev/tty0", F_OK))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user