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:
David Herrmann 2012-08-12 13:31:19 +02:00
parent 2841558f7c
commit 9bce87d564

View File

@ -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;